This is perhaps caused by an upgrade of ruby. In 1.9.2, the current directory "." is no longer included in the path, as it previously was? See http://stackoverflow.com/questions/2900370/why-does-ruby-1-9-2-remove-from-load-path-and-whats-the-alternative for what I mean.
Since the error says it cannot find test1 (which I presume is the name of your script you have shown the code of), the problem likely lies outside your test file, so the source of that file is of now help. Hope that makes sense. ben On Dec 23 2010, 8:43 pm, Juhi Choudhary <[email protected]> wrote: > 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 viahttp://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.

