All Downloads are FREE. Search and download functionalities are using the official Maven repository.

robotframework-2.7.7.tools.remoteserver.example.examplelibrary.rb Maven / Gradle / Ivy

The newest version!
#!/usr/bin/env ruby

class ExampleRemoteLibrary

  def count_items_in_directory(path)
    Dir.entries(path).find_all{|i| not i.match('^\.')}.length
  end 

  def strings_should_be_equal(str1, str2)
    puts "Comparing '#{str1}' to '#{str2}'"
    if str1 != str2
      raise RuntimeError, "Given strings are not equal"
    end
  end

end


if __FILE__ == $0
  require "robotremoteserver"
  RobotRemoteServer.new(ExampleRemoteLibrary.new, *ARGV)
end





© 2015 - 2024 Weber Informatics LLC | Privacy Policy