Stopping a Scenario
Stopping One Running Scenario
A scenario is automatically stopped when its last step has ended.
You can stop it explicitly using the endScenario method:
Stopping All Running Scenarios
You can stop all running scenarios for an application (or process) using the clearAll method:
You can stop all running scenarios using the runningScenarios property:
Wait Until a Scenario Ends
If necessary, you can set an onEnd handler on a scenario, which will be called when the scenario ends
The onEnd method can be used to synchronize scenarios:
-
To launch sub-scenarios from a parent scenario
-
To concatenate multiple scenarios.