Do...While Step In-Place Editing

The difference between this statement and the similar While statement is that for the Do...While statement the loop is executed at least once.

To edit a Do test step:

  1. Select the step in the Test Steps table.
  2. Edit the step parameters as follows:
    • Session: This column displays no session at all.
    • Return Variable: This step type does not return any variable.
    • Command String: Displays the looping condition that is associated with the step. The number of commands enclosed within the Do...While statement execute as long as the conditional expression evaluates to `true'.
    • Click into the column and define a conditional expression by editing it in-place.

      Alternatively, click the button and edit the conditional expression using the Expression Builder GUI. The Expression Builder GUI has two working modes that you can use interchangeably, a Basic mode – which uses a natural-like expression format including mathematical operators and Composer variables – and an Advanced mode, which permits the defining of more complex conditional expressions that include Composer variables and Tcl commands, operators and even Tcl code portions.

      For detailed instructions on creating and editing a conditional expression see Using the Composer Expression Builder.

  Assign a 1
 Do
    TclEval puts "loop number: $a"
    TclEval incr a
 While ($a <10)