I'd suggest reading the Test::Unit documentation at http://www.ruby-doc.org/core/classes/Test/Unit.html. The assertions are detailed at http://www.ruby-doc.org/core/classes/Test/Unit/Assertions.html.
If you want your script to continue after a failed condition, you could wrap the condition in an if/else statement. Or use begin/rescue/ end: begin # assert/verify something (e.g. assert(browser.link(:id, "id").exists?) rescue # log the failure if it fails. end Hopefully, this helps point you in the right direction. orde PS: In terms of "best practices for reporting to test results?", you'd likely get various answers to that question. I do know that many of the contributors on this forum use RSpec and hold it in high regard. On Feb 10, 11:42 am, Matt <thurman_m...@yahoo.com> wrote: > Hi, > > I am new to Watir and trying to figure out the best way to go about > validating my AUT. I started out by using the assert method for text > checks but do not like that it exits when there is a failure and does > not execute the following statements. So my questions are: > > How is the verify method used? > Can I check for objects, properties, text, etc with verify? (need to > check for the existence of objects) > Which libraries need to be loaded? > > I added 'require "watir/testcase" ' as directed in another post and it > did not work. I was using it like this: > > verify($browser.text.include?("Order Now") ) > > best practices for reporting to test results? > > Thanks! > > Matt -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general