OnError Property
Description
The selected method for handling errors during the test run.
Property type
Read-write property
Syntax
Visual Basic
Public Property OnError As String
Return Type
  • (Default)NextStep--UFT proceeds to the next step in the test or component when an error occurs.
  • Dialog--UFT displays an error message dialog box when an error occurs. You must click a button on the message box to continue or end the run session. This option has no effect when running a test using automation, since when UFT One is opened via automation, it runs in silent mode, meaning that even if it is visible, message boxes are not opened.
  • NextIteration--UFT proceeds to the next iteration of the action when an error occurs.  (This value is not relevant for business components.)
  • NextTestIteration--UFT proceeds to the next iteration of the test when an error occurs. (This value is not relevant for business components.)
  • Stop--UFT stops the test or component run when an error occurs.
Example
See Also