Types Of Exit Action Statement

There are four types of exit action statements you can use:

  • ExitAction. Exits the current action, regardless of its iteration attributes.

  • ExitActionIteration. Exits the current iteration of the action.

  • ExitRun. Exits the test, regardless of its iteration attributes.

  • ExitGlobalIteration. Exits the current global iteration.
ExitActionIteration  :


Exits the current iteration of the action. The pass or fail status of the action iteration remains as it was in the step prior to the ExitActionIteration statement.

Note: The ExitActionIteration statement and its return value are displayed in the Test Results.

Syntax
The following example uses the ExitActionIteration function to stop running the current action iteration when the value in the current row of the City column in the action's data sheet is Paris.
CurrentCity = DataTable("City", dtLocalSheet)

If CurrentCity = "Paris" Then ExitActionIteration("Skipping Paris")

Post a Comment

Previous Post Next Post