- The steps below are on Vista/64 on Cygwin window and running as administrator.
- Ran "gem update --system" and got "Nothing to update". (OK)
- Ran "gem install watir" and got 3 successfully installed lines (common, fire, watir) all 1.6.2, so "3 gems installed" and 3 ri documentations installed and 3 RDoc documentation installed.
- Tried "two-minutes.rb" again and it worked both as administrator and later as just me.
- Found the "Running Unit Tests in Development" and started reading it.
- Create $HOME/WATIR and then did this: svn checkout http://svn.openqa.org/svn/watir/trunk
- Got version 1685 of the source code.
- Also check "gem list user-choices" and found I had 1.1.6. (OK)
- Copied options.yml.example to options.yml in same directory (trunk/watir/unittest).
- So I ran the Watir Unit Tests and got this: $ ruby core_tests.rb
C:/cygwin/home/jasnow/WATIR/trunk/commonwatir/lib/watir/browser.rb:89:in `klass': (
eval):1:in `klass': uninitialized constant Watir::IE (NameError)
from C:/cygwin/home/jasnow/WATIR/trunk/commonwatir/lib/watir/browser.rb:65:
in `eval'
from C:/cygwin/home/jasnow/WATIR/trunk/commonwatir/lib/watir/browser.rb:89:
in `klass'
from C:/cygwin/home/jasnow/WATIR/trunk/commonwatir/lib/watir/browser.rb:65:
in `new'
from C:/cygwin/home/jasnow/WATIR/trunk/commonwatir/unittests/setup/browser.
rb:9
from c:/deepdive/InstantRails-2.0-win/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from c:/deepdive/InstantRails-2.0-win/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from C:/cygwin/home/jasnow/WATIR/trunk/commonwatir/unittests/setup/lib.rb:7
from c:/deepdive/InstantRails-2.0-win/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from c:/deepdive/InstantRails-2.0-win/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from ./../unittests/setup.rb:21
from c:/deepdive/InstantRails-2.0-win/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from c:/deepdive/InstantRails-2.0-win/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from core_tests.rb:8 - Googled for "klass': uninitialized constant Watir::IE" and found email from Bret that said to add "require 'watir/ie" to core_tests.rb, so I did and it started to work.
- Run Summary was: "285 tests, 1135 assertions, 21 failures, 37 errors". I will attach log file if possible.
Showing posts with label Ruby Watir Install Then Run Watir Unit Tests.. Show all posts
Showing posts with label Ruby Watir Install Then Run Watir Unit Tests.. Show all posts
Saturday, February 7, 2009
Setting Ruby/Watir Environment - Chapter 3
Reinstall Watir
Subscribe to:
Comments (Atom)