ExitTestIteration Statement
Description
Exits the current iteration of the OpenText Functional Testing test or ALM business process test and proceeds to the next iteration, or exits the test run if there are no additional run-time parameter iterations. The pass or fail status of the test iteration remains as it was in the step prior to the ExitTestIteration statement.
Syntax
ExitTestIteration[(RetVal)]
Argument | Type | Description |
---|---|---|
RetVal | Variant | Optional. The return value. |
The following example uses the ExitTestIteration 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:
- CallServiceTest Statement
- CreateObject64 Statement
- DescribeResult Statement
- ExecuteFile Statement
- ExitAction Statement
- ExitActionIteration Statement
- ExitComponent Statement
- ExitComponentIteration Statement
- ExitTest Statement
- ExitTestIteration Statement
- GetLastError Statement
- InvokeApplication Statement
- IsPartialRun Statement
- LoadAndRunAction Statement
- LoadFunctionLibrary Statement
- ManualStep Statement
- Print Statement
- RegisterUserFunc Statement
- RunAPITest Statement
- SetLastError Statement
- UnregisterUserFunc Statement
- Wait Statement