hokrani
14 years agoContributor
TC Stop running if Region Check point fail
1. Dim ValidCheckPoint
2. On Error Resume Next
3. ValidCheckPoint=
Regions.SummarySection_PrintDoc.Check(objExpected.Picture(97, 369, 410, 80, False))
4. If Err.Number <> 0 Then
5. Msgbox "An exception occurred !!! "
6. End If
7. Msgbox "TC running next step"
8. Sub GeneralEvents_OnStopTest(Sender)
9. Msgbox "TC going to stop"
10. End Sub
In the above code, I use the region check point.(Line 3)
If the error thrown it @line 3, then i handle it @Line 2 i.e. it should run line 5 and continue running the Line 7 too.
But in the above code it will @Line 9.
Please let me know how to handle such kind of error i.e. i want TC to continue run instead of stop.