Get List Count

This is a pre-built Action located under the captured dropdown element. The functionality of this action in Avo Assure is to retrieve the total number of options available in the specified dropdown list. The result is stored in a dynamic variable for further use during test execution.

Syntax

Input Value: N/A

Argument
Description

N/A

Not Applicable

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the total count of values from the list or dropdown.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Retrieving the Total Number of Values in a List or Dropdown

In this example, we explain how to get the total number of items available in a dropdown or list component.

  • Action: Get List Count

  • Input Value: N/A

    • This action does not require any value in the Input Value column. It automatically detects the captured list or dropdown element.

  • Output Value: {List count}

    • The total number of items present in the list or dropdown (5) is stored in the {List count} dynamic variable.

    • If a second output variable is defined, it stores the action status with the following possible values:

      • True: If the list or dropdown count is retrieved successfully.

      • False: If the list or dropdown count is not retrieved successfully.

  • Logical Explanation: The Get List Count action identifies the captured dropdown or list element and calculates how many items are available in it. The final count (5) is stored in the {List count} variable.

Last updated

Was this helpful?