Forum Discussion
Abramova
13 years agoStaff
Hi,
You can use the following approach:
1. Disable the Stop on error option.
2. Create an event handler for the OnLogError event. For information on how to do that, please refer to http://smartbear.com/support/viewarticle/11454/.
Here is the handler's source code you need to use:
Sub GeneralEvents_OnLogError(Sender, LogParams)
ErrCount = ErrCount + 1
End Sub
3. Use the following script code to run your tests, but before you do, replace the comments with your test commands.
Dim ErrCount
Sub ConfigureDataSet
'Performing actions with the application:
'1. Launch the application.
'2. Click some button. The basic form will be opened.
'Calling other routines
Filter
CreateGroup
End Sub
Sub Filter
ErrCount = 0
'Performing the needed actions
If ErrCount <> 0 Then
ReturnInitialState
End If
End Sub
Sub CreateGroup
'Performing the needed actions
End Sub
Sub ReturnInitialState
'Returns the application to the initial state:
'1. Close the basic form
'2. Click the button to open the form again.
End Sub
Sub GeneralEvents_OnLogError(Sender, LogParams)
ErrCount = ErrCount + 1
End Sub
Related Content
Recent Discussions
- 17 minutes agoSubhraDas
- 13 hours agoJacobjacob44