Hi!
I'm new to Watir, but I've come as far as creating my first test case. I'd
like to start using data from an excel spreadsheet for my tests, so I've
installed the new excel interface class. However, I'm having trouble getting
the example tests to run. I get the following error message:
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1166\examples>XLS_usage_example.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- xls (LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/examples/XLS_usage_example.rb:1
I suspect that I just don't have the right files in the right places, but I'm
not sure where everything should be.
The test case requires Xls, test/unit, and pp. I've put the Xls.rb file in the
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1166\watir\contrib directory. I
couldn't find test/unit, but it looks like it may be the test-unit patch, which
I've saved as
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1166\watir\contrib\testcase.rb (I
updated the test case to require 'testcase'). I verified that pp.rb exists at
C:\ruby\lib\ruby\1.8.
Here is the code around line 27 of custom_require.rb (line 27 is:
gem_original_require path)
def require(path) # :nodoc:
gem_original_require path
rescue LoadError => load_error
begin
if spec = Gem.searcher.find(path)
Gem.activate(spec.name, false, "= #{spec.version}")
gem_original_require path
else
raise load_error
end
end
end
After this, I'm at a loss as to what I need to do. Any help would be greatly
appreciated!
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general