Hi Durgesh!

Are you using the Test::Unit assertions?

Originally, I used the Test::Unit assertions, but moved to the Watir
assertions for this reason.  Watir assertions won't cause the script
to stop - it will keep running until it can't find any of the page
objects to continue your tests.

You might also want to check out the RSpec assertions.  Most people
find them more intuitive and easier to read, although I'm still using
a Test::Unit framework with Watir assertions.

Hope this helps!

-Tiffany



On Apr 20, 4:58 am, Durgesh Nadkarni <durgeshnadka...@gmail.com>
wrote:
> Hi,
>
> I want to know how can we continue with the script execution when assert
> condition fails.
>
> The control does not go ahead from the line where the assert condition
> fails.
>
> For example suppose I have following assert condition
> assert(ie.pageContainsText("some text"))
>
> Then if the above condition fails, the control does not move to the next
> line in the script.
>
> As a result I cannot check whether next assert condition passed or failed.
> It also halts the execution in case of data driven testing as execution
> stops at that point.
>
> Please let me know on above.
>
> Thanks & Regards
> Durgesh.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to