[Wtr-general] Ruby Nubie fails to get out of the box with Unittests

Bret Pettichord bret at pettichord.com
Thu Feb 2 12:09:29 EST 2006


1 and 3 are happening because of test-bugs -- the tests don't work right
when watir is installed in a directory with a space in the name.

2 fails in:

        table = $ie.table(:id, 'pic_table')
        image = table[1][2].image(:index,1)
        assert_equal("106", image.width)

At the moment i am stumped as to what this failure indicates. It is getting
the wrong width for the image. Hmm.

Bret

On 2/2/06, Paul Carvalho <tester.paul at gmail.com> wrote:
>
> On 01/02/06, Bret Pettichord <bret at pettichord.com> wrote:>> However, i
> specifically created core_tests.rb as a robust subset of> all_tests.rb. I
> would like to see the details about the 3 failures you found> while running
> them.>
> Hi Bret, I ran the tests again this morning with nothing else
> running(disabled MSN Messenger, A/V service, etc.) and I got the same
> errors:
> ----
> C:\Program Files\Watir\unittests>core_tests.rbLoaded suite C:/Program
> Files/Watir/unittests/core_testsStarted...........................................................-----------Objects
> in  page -------------
> [snip]
> .......................F......................................F............................FFinished
> in 69.985 seconds.
>   1) Failure:test_navigation(TC_Navigate) [C:/Program
> Files/Watir/unittests/../unittests/navigate_test.rb:19]:<"
> file://c:/program%20files/watir/unittests/html/buttons1.html"> expected
> but was<"file://c:/program files/watir/unittests/html/buttons1.html">.
>   2) Failure:test_links_and_images_in_table(TC_Tables) [C:/Program
> Files/Watir/unittests/../unittests/table_test.rb:165]:<"106"> expected but
> was<"28">.
>   3)
> Failure:test_showLinks(TC_showlinks)    [C:/ProgramFiles/Watir/unittests/../unittests/links_test.rb:163:in`test_showLinks'
> C:/ProgramFiles/Watir/unittests/../unittests/links_test.rb:163:in`each_with_index'
> C:/Program Files/Watir/unittests/../unittests/links_test.rb:163:in
> `each'
> C:/ProgramFiles/Watir/unittests/../unittests/links_test.rb:163:in`each_with_index'
> C:/ProgramFiles/Watir/unittests/../unittests/links_test.rb:163:in`test_showLinks']:<"1
> file:///c:/program%20files/watir/unittests/html/links2.html test1">
> expected to be =~</^1 + +file:\/\/\/c:\/program
> files\/watir\/unittests\/html\/links2.html *test1$/>.
> 154 tests, 929 assertions, 3 failures, 0 errors
> ----
> Hope this helps.  TTYL.  Paul.
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060202/5ed0eb95/attachment.html 


More information about the Wtr-general mailing list