Control Statement Steps
This describes the following control statements:
- Comment: Defines a non-executable comment that is displayed in the Script Steps table.
- Assign: Defines a local TestComposer variable and assigns it a user-specified value or an expression.
- ReadWriteGlobal: Defines a global TestComposer variable and assigns it a user-specified value or an expression that may contain local variables.
- For: Executes a loop comprising a number of steps by cycling over a counter variable or a set of values.
- While: Executes a loop comprising a number of steps until the loop condition evaluates to `false'.
- Do...While: Executes a loop comprising a number of steps while the loop condition evaluates to `true'.
- StepSearch: Executes a counter type loop containing a number of steps until a user-defined condition evaluates to `false'.
- BinarySearch: Searches over a continuous interval by selecting the middle element in the interval, thus progressively closing in on a sought value. For every pass, a user-defined condition is evaluated and the search interval is reduced. The search ends when the interval falls below a user-specified value.
- Break: Unconditionally breaks a for or while loop.
- Exit: Terminates the script execution.
- Return: A Return statement is used within a procedure for returning the value of a variable or of a constant. When used in the main body of a script, it is used for specifying a script pass/fail result.
- If, Else: The If control statement evaluates a condition and executes the following step(s) if the condition evaluates to `true'. The Else control statement is used within an If statement specifies an execution path when the If-associated condition evaluates `false'.
- Join: Waits for one or more steps executing in parallel to finish.
- RunProcedure: Runs a procedure that was defined locally in the script body, or an external procedure resource. A procedure, comprising one or more steps, enables you to define an operations sequence and execute it repeatedly within a script.
- RunProcess: Runs an external command, such as an .exe command file or a Tcl script.
- Sleep: Pauses the script execution for a specified period of time.
IxLoad TestComposer │ User Guide |