[Wtr-general] Unit test failures

Doug Burt forum-watir-users at openqa.org
Wed Dec 6 20:17:00 EST 2006


I see some of these symptoms overlap other threads but I'm just too new to make use of them yet.
I’m trying to get started learning to use Watir but the unit tests don’t run cleanly.  I’m under some time pressure to evaluate this tool and move on so if someone can recognize these symptoms and provide a quick answer to what’s going wrong I would appreciate it very much.
My base system is Windows XP, Internet Explorer 7.0.  I installed ruby 1.8.5-21 and watir 1.4.1.  The unit tests output summary said 182 tests,  63 assertions, 3 failures, 163 errors.  Error text always included:
WIN32OLERuntimeError: unknown property or method ‘navigate
   HRESULT error code: 0x800706ba
      The RPC server is unavailable
To check if there were issues with the operating system I set up a VMWare virtual machine running Windows 2000 and Internet Explorer 6.0, installed the same versions of ruby and watir.  Here the unit test summary was 182 tests, 1033 assertions, 8 failures, 2 errors.  The text of the first error was
test_save_local_image(TC_Images):
Watir::Exception::NavigationException: Cannot find server or DNS Error
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1160:in `check_for_http_error'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1141:in `set_defaults'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in `call'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `each'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1419:in `wait'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:143:in `test_save_local_image'
Second error was the same for test_save_local_image_returns_original_page(TC_Images)
Some of the failures were:
  3) Failure:
test_imageHasLoaded(TC_Images) [C:/Program Files/Watir/unittests/../unittests/images_test.rb:76]:
<false> is not true.

  4) Failure:
test_image_properties(TC_Images) [C:/Program Files/Watir/unittests/../unittests/images_test.rb:104]:
<"88"> expected but was
<"30">.
  8) Failure:
test_confirm(TC_PopUps) [C:/Program Files/Watir/unittests/../unittests/popups_test.rb:32]:
<false> is not true.

  9) Failure:
test_links_and_images_in_table(TC_Tables) [C:/Program Files/Watir/unittests/../unittests/table_test.rb:165]:
<"106"> expected but was <"28">.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5655&messageID=15793#15793


More information about the Wtr-general mailing list