ExitTest Statement
Description
Exits the entire OpenText Functional Testing test or OpenText Application Quality Management business process test, regardless of the run-time iteration settings. The pass or fail status of the test remains as it was in the step prior to the ExitTest statement.
Syntax
ExitTest[(RetVal)]
Argument | Type | Description |
---|---|---|
RetVal | Variant | Optional. The return value. |

The following example uses the ExitTest statement to end the test run if a checkpoint on the userName edit box fails.
res = Browser("Welcome: Booking Site").Page("Welcome: Booking Site").WebEdit("userName").Check ( CheckPoint("userName") )
If res = False Then
ExitTest
End If
See also: