I'm not sure what Paul Carvalho's issue is such that the folder didn't get
created.  Are you sure you're looking in the right place, Paul?  Just to be
sure, it shouldn't appear anywhere in your C:\ruby directory tree (assuming
that's your Ruby base directory).  It should appear in a subdirectory of the
same unittests directory in which all_tests.rb is found.  Could you check
again?

I can report this:  upon changing the name of the unittests\html\images
folder to unittests\html\imagesx on my system, I get a report that 8
assertions failed and that there were 3 errors.  That's Error Set A below.

And when I restored that folder to its proper name, I got 5 failures and 2
errors.  That's Error Set B below.

---Michael B.

Error set A
===========

  1) Failure:
test_imageHasLoaded(TC_Images) [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittest
s/../unittests/images_test.rb:76]:
<false> is not true.

  2) Error:
test_image_click(TC_Images):
Watir::Exception::UnknownObjectException: Unable to locate object, using
name and disabler_test
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:1939:in `asser
t_exists'
    (eval):2:in `disabled'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:56:in `test_image_click'

  3) Failure:
test_image_properties(TC_Images) [C:/Documents and Settings/Michael
Bolton/My Documents/Download/Watir/watir-v1_4/unitte
sts/../unittests/images_test.rb:104]:
<"88"> expected but was
<"30">.

  4) Error:
test_save_local_image(TC_Images):
WIN32OLERuntimeError: navigate
    OLE error code:800704C7 in <Unknown>
      <No Description>
    HRESULT error code:0x80020009
      Exception occurred.
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:1253:in `metho
d_missing'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:1253:in `goto'

    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:2808:in `save'

    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:160:in `safe_file_block'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:160:in `each'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:160:in `safe_file_block'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:143:in `test_save_local_image'

  5) Error:
test_save_local_image_returns_original_page(TC_Images):
WIN32OLERuntimeError: navigate
    OLE error code:800704C7 in <Unknown>
      <No Description>
    HRESULT error code:0x80020009
      Exception occurred.
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:1253:in `metho
d_missing'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:1253:in `goto'

    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:2808:in `save'

    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:160:in `safe_file_block'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:160:in `each'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:160:in `safe_file_block'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:153:in `test_save_local_image_returns_original_page'

  6) Failure:
test_navigation(TC_Navigate) [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/
../unittests/navigate_test.rb:19]:
<"file://c:/documents%20and%20settings/michael%20bolton/my%20documents/downl
oad/watir/watir-v1_4/unittests/html/buttons1
.html"> expected but was
<"file://c:/documents and settings/michael bolton/my
documents/download/watir/watir-v1_4/unittests/html/buttons1.html">.


  7) Failure:
test_links_and_images_in_table(TC_Tables) [C:/Documents and Settings/Michael
Bolton/My Documents/Download/Watir/watir-v1
_4/unittests/../unittests/table_test.rb:165]:
<"106"> expected but was
<"28">.

  8) Failure:
test_button_frames(TC_show_frames)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:113:in `capture_and_compare'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:125:in `test_button_frames']:
<"there are 2 frames\nframe  index: 0 name: buttonFrame\nframe  index: 1
name: buttonFrame2\n"> expected but was
<"there are 2 frames\nframe  index: 1 name: buttonFrame\nframe  index: 2
name: buttonFrame2\n">.

  9) Failure:
test_iframes(TC_show_frames)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:113:in `capture_and_compare'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:133:in `test_iframes']:
<"there are 2 frames\nframe  index: 0 name: senderFrame\nframe  index: 1
name: receiverFrame\n"> expected but was
<"there are 2 frames\nframe  index: 1 name: senderFrame\nframe  index: 2
name: receiverFrame\n">.

 10) Failure:
test_show_nested_frames(TC_show_frames)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:113:in `capture_and_compare'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:117:in `test_show_nested_frames']:
<"there are 2 frames\nframe  index: 0 name: nestedFrame\nframe  index: 1
name: nestedFrame2\n"> expected but was
<"there are 2 frames\nframe  index: 1 name: nestedFrame\nframe  index: 2
name: nestedFrame2\n">.

 11) Failure:
test_showLinks(TC_showlinks)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `test_showLinks'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `each_with_index'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `each'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `each_with_index'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `test_showLinks']:
<"1
file:///c:/documents%20and%20settings/michael%20bolton/my%20documents/downlo
ad/watir/wat
ir-v1_4/unittests/html/links2.htmltest1"> expected to be =~
</^1 + +file:\/\/\/c:\/documents and settings\/michael bolton\/my
documents\/download\/watir\/watir-v1_4\/unittests\/htm
l\/links2.html *test1$/>.

182 tests, 1032 assertions, 8 failures, 3 errors

Error set B
===========

  1) Error:
test_image_click(TC_Images):
Watir::Exception::UnknownObjectException: Unable to locate object, using
name and disabler_test
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../watir.rb:1939:in `asser
t_exists'
    (eval):2:in `disabled'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:56:in `test_image_click'

  2) Error:
test_save_local_image(TC_Images):
Errno::ENOENT: No such file or directory -
C:/Documents%20and%20Settings/Michael%20Bolton/My%20Documents/Download/Watir
/
watir-v1_4/unittests/html/images/triangle.jpg
    c:/ruby/lib/ruby/1.8/ftools.rb:136:in `stat'
    c:/ruby/lib/ruby/1.8/ftools.rb:136:in `compare'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:144:in `test_save_local_image'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:143:in `safe_file_block'
    C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/images_test.r
b:143:in `test_save_local_image'

  3) Failure:
test_navigation(TC_Navigate) [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/
../unittests/navigate_test.rb:19]:
<"file://c:/documents%20and%20settings/michael%20bolton/my%20documents/downl
oad/watir/watir-v1_4/unittests/html/buttons1
.html"> expected but was
<"file://c:/documents and settings/michael bolton/my
documents/download/watir/watir-v1_4/unittests/html/buttons1.html">.


  4) Failure:
test_button_frames(TC_show_frames)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:113:in `capture_and_compare'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:125:in `test_button_frames']:
<"there are 2 frames\nframe  index: 0 name: buttonFrame\nframe  index: 1
name: buttonFrame2\n"> expected but was
<"there are 2 frames\nframe  index: 1 name: buttonFrame\nframe  index: 2
name: buttonFrame2\n">.

  5) Failure:
test_iframes(TC_show_frames)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:113:in `capture_and_compare'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:133:in `test_iframes']:
<"there are 2 frames\nframe  index: 0 name: senderFrame\nframe  index: 1
name: receiverFrame\n"> expected but was
<"there are 2 frames\nframe  index: 1 name: senderFrame\nframe  index: 2
name: receiverFrame\n">.

  6) Failure:
test_show_nested_frames(TC_show_frames)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:113:in `capture_and_compare'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/frame_test.r
b:117:in `test_show_nested_frames']:
<"there are 2 frames\nframe  index: 0 name: nestedFrame\nframe  index: 1
name: nestedFrame2\n"> expected but was
<"there are 2 frames\nframe  index: 1 name: nestedFrame\nframe  index: 2
name: nestedFrame2\n">.

  7) Failure:
test_showLinks(TC_showlinks)
    [C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `test_showLinks'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `each_with_index'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `each'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `each_with_index'
     C:/Documents and Settings/Michael Bolton/My
Documents/Download/Watir/watir-v1_4/unittests/../unittests/links_test.r
b:163:in `test_showLinks']:
<"1
file:///c:/documents%20and%20settings/michael%20bolton/my%20documents/downlo
ad/watir/wat
ir-v1_4/unittests/html/links2.htmltest1"> expected to be =~
</^1 + +file:\/\/\/c:\/documents and settings\/michael bolton\/my
documents\/download\/watir\/watir-v1_4\/unittests\/htm
l\/links2.html *test1$/>.

182 tests, 1040 assertions, 5 failures, 2 errors

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Carvalho
Sent: February 1, 2006 5:59 PM
To: [email protected]
Subject: [Wtr-general] Ruby Nubie fails to get out of the box with Unittests

Hello there.  I just installed Ruby and WATIR on my computer a fewhours ago
and am still learning about this scripting language.
I started with the WATIR User Guide and tried out the steps in "Step 3- Run
the Watir Unit Tests".   The final sentence here says: "Thetests should all
run and pass."
Unfortunately, I keep getting failures when I run "all_tests.rb" :"182
tests, 1036 assertions, 5 failures, 2 errors"
Here are my system specs:- Windows XP SP2 (all the latest windows
updates/security patches applied)- Internet Explorer
6.0.2900.2180.xpsp_sp2_gdr.050301-1519- ruby182-15.exe (installed to default
c:\ruby)- watir-1.4.1.exe (installed to default C:\Program Files\Watir)-
Active Content is allowed to run in files on My Computer. (I knowthis is
working for a fact because I am running my internet radioscript file in a
background IE window process while I work.)
I've scanned through the message archives and found similar errormessages
reported by Hugh Sasse on Fri Jan 13 10:08:54 EST 2006(subject = "Unit
testing").
First observation: I noticed that the unittests\html\images folder
ismissing, but I'm assuming that these files aren't really required
forsuccessful completion of the tests.Still, I did notice a few popup errors
while running the testscomplaining that the files were missing.  I can't
think that this isnormal/expected behaviour.
Second observation: it looks like a file (pass2.html) is missing.  Isthis
also intentional?
I decided to run "core_tests.rb" but it also failed : "154 tests,
929assertions, 3 failures, 0 errors"
-> Is there something that I'm missing here?  Is there a setup optionor
environment variable that I should set to get these tests to workcorrectly?
Please let me know.  Thanks in advance.  I won't let these hiccupsslow me
down while I run through the other examples and tutorials.  Ijust thought
I'd ask before I forget.
Cheers.Paul.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to