Issue Details (XML | Word | Printable)

Key: WTR-92
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Zeljko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

unit test failures and errors

Created: 22/Aug/06 04:42 AM   Updated: 02/Mar/10 05:23 AM   Resolved: 28/May/08 10:47 PM
Component/s: Unit Tests
Affects Version/s: 1.5.0/1.5.1
Fix Version/s: 1.5.5

Environment:
Microsoft Windows XP Professional, Version: 5.1.2600, Service Pack: 2.0
ruby 1.8.4 (2006-04-14) [i386-mswin32]
watir-1.5.1.1065
Issue Links:
Dependency
 


 Description  « Hide
  • install watir gem 1.5.1.1065
  • open cmd
  • go to c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1065\unittests
  • execute "all_tests"
  • failures and errors are reported
  • I am posting just a last few lines of error report, I can post all of it if it would help

[...]
309) Error:
test_show_nested_frames(TC_show_frames):
WIN32OLERuntimeError: Unknown property or method `navigate'
HRESULT error code:0x80010108
The object invoked has disconnected from its clients.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../watir.rb:1496:in `method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../watir.rb:1496:in `goto'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../unittests/frame_test.rb:111:in `capture_and_compare'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../unittests/frame_test.rb:118:in `test_show_nested_frames'

310) Error:
test_showLinks(TC_showlinks):
WIN32OLERuntimeError: Unknown property or method `navigate'
HRESULT error code:0x80010108
The object invoked has disconnected from its clients.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../watir.rb:1496:in `method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../watir.rb:1496:in `goto'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../unittests/links_test.rb:155:in `test_showLinks'

314 tests, 29 assertions, 2 failures, 308 errors
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../watir.rb:1530:in `method_missing': Unknown property or method `quit' (WIN32OLERuntimeError)
HRESULT error code:0x80010108
The object invoked has disconnected from its clients. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../watir.rb:1530:in `close'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/unittests/../unittests/setup.rb:3
from c:/ruby/lib/ruby/1.8/test/unit.rb:285



Sort Order: Ascending order - Click to sort in descending order
Carl Shaulis added a comment - 15/Jan/07 10:05 AM

A follow up e-mail sent to the reported on 1/15/2007 [cls]


Carl Shaulis added a comment - 15/Jan/07 03:04 PM

Zeljko responded today. He still has errors with the unit tests in his environment. Here is his response -

Yes, I still get a lot of errors when I run all_tests.rb

332 tests, 437 assertions, 7 failures, 252 errors

I have watir-1.5.1.1141, ruby 1.8.5 (2006-08-25) [i386-mswin32], IE 7, windows xp pro sp2

This will remain as an open issue. [cls]


Bret Pettichord added a comment - 28/May/08 06:08 PM

I'm not sure what is going on with these errors and do not know how to reproduce. From the notes here, it looks like IE became non-responsive to Watir, but I can't imagine why. I'm going to defer this one until we can get more information on how to reproduce.


Bret Pettichord added a comment - 28/May/08 06:34 PM

I think i've tracked this down to a failure in the TC_Capture test. In the future it would be good to record the first test that failed in the suite – that often indicates where the test suite went off the rails.


Bret Pettichord added a comment - 28/May/08 10:47 PM

I think i tracked this problem down to a problem with TC_Capture in screen_capture_test.rb. I've moved this test out of all_tests, so that should fix the problem reported. There are still some intermittent problems in all_tests.rb, but it looks to me like the cascading problem reported here is now fixed.