Get index count
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a pre-built action locared under @Generic Element, instructs Avo Assure to retrieve the total number of items (index count) present in a dropdown list within the AUT and save the result in the dynamic variable.
Input Value: <variable containing list value>
Note: Store the variable name within curly brackets.
<variable containing list value> (Required)
Provide a list which total number of items will be counted.
Output Value:
<Dynamic Variable> (Required)
This variable stores the number of items present in the dropdown.
<Dynamic Variable>
(Optional)
This variable stores the status as true or false
Example
Get the number of items in a dropdown list
Before using Get Index Count action, a prior step (such as Get all Values from List) should have already collected the list elements and stored them in a variable like {count}.
The Get Index Count action takes a list variable from the Input Value column (e,g., {count}) and calculates how many items are present in that list. The total count is stored in the {Total} variable, and the action status is saved in the {Status} variable with the following possible values:
True – if the index count is retrieved successfully
False – if the action fails due to an invalid or empty list