Hi
  I am using ruby with selenium to automate my test. But when I execute
my test case in eclipse IDE I am getting the following error

<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- test1 (LoadError)
  from <internal:lib/rubygems/custom_require>:29:in `require'
  from
D:/Juhi_Project/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:301:in
`<main>'


My source code is

require "test/unit"
require "rubygems"
gem "selenium-client"
require "selenium/client"

class Test1 < Test::Unit::TestCase
  def setup
    @verification_errors = []
    @selenium = Selenium::Client::Driver.new \
      :host => "localhost",
      :port => 4444,
      :browser => "*chrome",
      :url => "http://www.tutorialspoint.com/";,
      :timeout_in_second => 60
    @selenium.start_new_browser_session
  end
    def teardown
    @selenium.close_current_browser_session
    assert_equal [], @verification_errors
  end
    def test_test1
    @selenium.open "/ruby/ruby_hashes.htm"
    @selenium.click "link=Ruby Date & Time"
    @selenium.wait_for_page_to_load "30000"
    @selenium.type "q", "module"
    @selenium.click "//inp...@name='sitesearch' and
@value='www.tutorialspoint.com']"
    @selenium.click "sa"
    @selenium.click "link=Ruby Ranges"
    @selenium.wait_for_page_to_load "30000"
    @selenium.click "link=Ruby Iterators"
    @selenium.wait_for_page_to_load "30000"
  end
end


When I run this from command line it,s working fine. I have ruby1.9,
ruby-gems1.3.7,RSpec2.3.0,rails3.0.3.

Thanks in advance

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to