Get Multiple Values by Indexes
This is a pre-built Action located under the captured list element. The functionality of this Action in Avo Assure is to fetch multiple values from the list based on the index numbers provided in the input value. The result is stored in a dynamic variable for further use during test execution.
Syntax
Input Value: <Index1>;<Index2>;...etc.
<Index1>; <Index2>;...etc. (Required)
Provide the index of the list of items from which you want to retrieve the values.
Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)
<Dynamic Variable> (Required)
This dynamic variable stores the retrieved values from the list.
<Dynamic Variable> (Optional)
This dynamic variable stores the status as True or False
Example: Retrieving Multiple Values from a List Using Index Positions
In this example, we explain how to fetch multiple values from a captured list element based on the specified index positions.
Action: Get Multiple Values by Indexes
Input Value: 2;3
The first argument (2) specifies the index position of the first value to be retrieved.
The second argument (3) specifies the index position of the next value to be retrieved.
Output Value: {Values}
The retrieved list values are (e.g., All, Last Month) stored in the {Values} dynamic variable.
The execution status is stored in the {Status} dynamic variable with the following possible values:
True: If all values are retrieved successfully.
False: If all values are not retrieved successfully.
Logical Explanation: The Get Multiple Values by Indexes action takes the value from the Input Value column (2;3) and retrieves the corresponding values from the list at index positions 2 and 3. The fetched values (All, Last Month) are stored in the {Values} variable.

Last updated
Was this helpful?