Yea, I guess that's the effect. Unfortunately, not rescuing causes the script 
to terminate. What I have going on here is a loop... Ideally, at the end of the 
test case, I see that the loop executed say 20 times, that there were 20 
assertions, and that 5 of them failed. I guess I need to redesign the 
test/script to accomplish that.
 
Daniel Kurtz
Consultant
Olenick & Associates
205 W. Wacker Drive
Suite 2010
Chicago, IL 60606
312-332-0096
www.olenick.com

________________________________

From: [EMAIL PROTECTED] on behalf of Zeljko Filipin
Sent: Wed 7/27/2005 8:03 AM
To: [email protected]
Subject: RE: [Wtr-general] Script return values



I am new to unit testing, but try this:

assert(ie.contains_text("verification text"), "TEST FAILED.")

assert(boolean, [ message ] ) - Fails if boolean is false or nil.

"rescue" seems to rescue your failure.


<<winmail.dat>>

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

Reply via email to