use 'rescue' to handle your exception and there you can pass on control to your next test or not. use unit/test framework to write your tests. All that is handled for you.
On Apr 20, 6:58 am, Durgesh Nadkarni <[email protected]> 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 [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
