Control Keywords
5.5.1. For statement with index
Looping step inside for statement with index..
- Object Repository: No Object Repository is required.
- Data Input:
Field | Description |
---|---|
startIndex | Value of the index's start. |
endIndex | Value of the index's end. |
- Data Output : Create or call a variable (Returns the index of the current loop) . Then result can use with other steps
5.5.2. For statement with data
Looping step inside for statement with test data.
- Object Repository: No Object Repository is required.
- Data Input:
Field | Description |
---|---|
dataSource | Value of the test data source for loop statement. |
- Example test data source:
-
In that test data source, it has 3 rows and you want to run test script with the links of those rows
-
And here is the way you should bind the links into test script
5.5.3. Break loop
Break current looping. Only use this keyword inside for keyword.
- Object Repository: No Object Repository is required.
- Data Input: No data input is required.
Report display for "Break Loop" step as below:
5.5.4. Continue loop
Skip to the next looping round. Only use this keyword inside for keyword.
- Object Repository: No Object Repository is required.
- Data Input: No data input is required.
Report display for "Continue Loop" step as below:
5.5.5. If statement
Run step if condition valid.
- Object Repository: No Object Repository is required.
- Data Input:
Field | Description |
---|---|
expression1 | Value of the first data want to compare. |
condition | Condition for compare (select from the list including: ==. !=, >, >=, < , <=) |
expression2 | Value of the second data want to compare. |
- Condition valid case:
- Condition invalid case:
5.5.6. Map variables
Map value from test data to inputs of object.
- Object Repository: No Object Repository is required.
- Data Input:
Field | Description |
---|---|
variablePath | data source want to map. |
- Data Output : Create or call a variable to map with object.