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

Bret Pettichord bret at pettichord.com
Wed Feb 1 18:40:49 EST 2006


Paul,

There are several known problematical tests in all_tests.rb. I've updated
the user guide so that the next version will tell people to run
core_tests.rb, but you already figured that part out.

The specific problems you mentioned (in all_tests.rb) mostly sound familiar.
They are known and in several cases happen intermittently.

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.

In one case recently, i found that -- believe it or not -- the IP phone
software i was running caused a couple of these tests to fail. It somehow
embedded html and javascript in every web page by browser served and
therefore was affecting some of the element counts.

In any case, it sounds like you've installed Watir correctly and have just
run into some marginal issues.

Bret

On 2/1/06, Paul Carvalho <tester.paul at gmail.com> wrote:
>
> 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
> 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/20060201/091831d0/attachment.html 


More information about the Wtr-general mailing list