Element: Choice
Symbol:
Function: The element is a branch node to either the conditional branches <condition>
or the nonconditional branch
Otherwise. All branches contain implemented statements with test elements, especially test cases.
When using the Insert Choose command to insert the element, a conditional branch and an otherwise branch are inserted automatically. To insert another conditional branch, select the Insert Branch command. You can insert any number of conditional branches. The first branch to have a true condition is executed.
When you click the <condition> element, the When tab opens. There you can configure the condition.
Test run
In the test run, the expression specified in <condition> is executed first. If the expression is TRUE
, then the branch is executed. If the expression is FALSE
, then the branch is skipped. If all conditions are false, then the Otherwise branch is followed and the statements there are executed. The otherwise branch is nonconditional, and as a result it is always executed when it is reached. The statements and test cases in the unprocessed branches are identified as skipped.
Tab: When
Function: Configuration of the condition
Call: A conditional branch is selected in the test script editor.
Condition | Conditional expression Evaluated during the test run Example: Hint: Variables, expressions, and macros are described in their own chapters. |