Synchronizing multiple values
In a variable check, when multiple values have been defined for a variable, you can create a synchronized set of values, with the same number of elements, which can be synchronized.
Before you begin
Synchronizing values requires that at least two sets of values (series, multiple, datapool) have been defined in the test case. Both value sets must have the same number of elements.
About this task
Variable | Initialization value | Number of elements |
---|---|---|
a | [0.0, 1.0, 2.0, 3.0, 4.0] | 5 |
b | [0.0, 0.1, 5.0, 10.0, 10.1] | 5 |
c | [0, 1] | 2 |
When two or more sets are synchronized, elements of each set are run together. In the previous example, if the initialization values for a and b are synchronized, a=0 is called with b=0.0, a=2 is called with 0.1, and so on. The test generates 5 x 2 = 10 iterations.
Synchronizing variables enables you to run two or more sets of values in parallel, such as linked curves or sets of coordinates.
Procedure
- In the test editor, select a check block to edit the variable checks.
- In the Initial Expression column of one variable, click the Menu button and select Multiple.
- In the Multiple Initial Expression window, select Synchronized with and select
the variable which is initialized with another multiple set.The number of iterations is evaluated and displayed on the Iterations line of the test editor and the quick edition area switches to multiple edition mode.
- In the quick edition area, type a value for each element
in the set.
- Press TAB to move to the next element in the set.
- Click the Previous and Next buttons to scroll through the elements of the set.
- Click the ... button to open the advanced editor window. The advanced editor provides an expanded table view of the values.
- Press ENTER or click to apply the changes.