Get index count

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.

Syntax

Input Value: <variable containing list value>

Argument
Description

<variable containing list value> (Required)

Provide a list which total number of items will be counted.

Output Value:

Argument
Description

<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

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

Last updated

Was this helpful?