verifyTextExist

This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to verify the presence of the specified text in the table and count its occurrences based on the input provided. The result is stored in the given dynamic variable for further use during test execution.

Syntax

Input Value: <text>

Argument
Description

<text> (Required)

Provide the text value you want to verify for its existence within the table content.

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

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the count of the specified items present.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Verifying and Counting Text Occurrences in a Table

In this example, we explain how to verify whether a specific text exists within a captured table and count how many times it appears.

  • Action: VerifyTextExist

  • Input Value: Home Improvement Loan

    • This action requires the exact text (Home Improvement Loan) that needs to be searched within the table.

  • Output Value: {Count}

    • The total number of occurrences of the specified text found in the table (6) is stored in the {Count} dynamic variable.

    • If a second output variable is provided, the action returns the status as True or False:

      • True: If the text is found in the table and its occurrences are counted successfully.

      • False: If the text is not found in the table.

  • Logical Explanation: The verifyTextExist action reads the expected text from the Input Value column (Home Improvement Loan). It scans through the captured table, identifies all cells containing the specified text, counts the total number of occurrences. The result is stores (6) in the {Count} variable.

Last updated