<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 "//input[@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/.