Running a TestComposer Script with Procedures

A TestComposer script may contain procedures (executed sequentially), either defined inline within the script body or procedures that have been imported from the plugin's resources repository.

To run a TestComposer script containing procedures:

  1. Click the Play toolbar button and start running the script according to the current playback mode.
  2. The steps sequence is executed with the currently executing step shown dark green and marked by an arrow icon in the Breakpoints pane.

  3. When a RunProcedure step is reached and starts executing, the step is highlighted light green for the duration of the procedure body execution. The currently executing step within the procedure body is still shown highlighted dark green . If no further procedure call is encountered and after the procedure body steps finish running, control returns to the step following the RunProcedure step.
  4. If a breakpoint is encountered defined for a RunProcedure step, clicking the Step in button descends into the procedure body and stops after executing the first procedure step.
  5. While in the procedure block, click the Step over button to execute one step at a time, or click the Step out button to execute all remaining procedure steps, exit the procedure and stop at the step following the executed RunProcedure step.

    If a procedure resource contains breakpoints, when that procedure is called as shared procedure within a script, at runtime the breakpoints will not be taken into account.

  6. At any time while the script is executing, you can pause or stop the execution by clicking the or buttons. If the execution was paused, click the Play button to resume execution.
  7. Alternatively, if you want to execute steps in turn and pause after each step, click the Step over button repeatedly.

    The script execution terminates after the last script step was run. When multiple tests are open in the TestComposer GUI, the tab that corresponds to the test having completed execution flashes briefly.