OnError Property
The selected method for handling errors during the test run.
Property type
Read-write property
Visual Basic
Public Property OnError As String
Return Type
  • 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 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 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.
  • NextStep--(Default) UFT proceeds to the next step in the test or component when an error occurs.
See Also