UFT offers several statements to exit code execution. Use this, which
best suits your needs.
ExitTest – Exits test completely.
ExitTestIteration – Exits test (global) iteration and proceeds
to next test iteration (if exists).
ExitAction – Exits action. In case of top-level action, execution will
proceed to next test iteration (if exists). In case of called action, execution
flow will return to next line of calling action.
ExitActionIteration – Exits action (local) iteration and proceeds
to next action iteration (if exists and is enabled in Action Call Properties).
Following
statements are obsolete, do not use them: ExitRun, ExitGlobalIteration.