verifyTextboxLength

This is a pre-built Action located under the captured textbox element. The functionality of this Action in Avo Assure is to verify whether the maximum length of the textbox matches the value specified in the Input Value column. The verification result is stored in a dynamic variable for further use during test execution.

Syntax

Input Value: <input value>

Argument
Description

<input value> (Required)

Provide the numeric value to verify against the text box length.

Note: The user must provide the input as a positive numeric value.

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

Argument
Description

<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

Both dynamic variable stores the status as True or False.

Example: Verifying the Length of a Textbox

In this example, we explain how to verify whether the character length of a textbox matches the specified expected value using the verifyTextboxLength action.

  • Action: verifyTextboxLength

  • Input Value: 15

    • The input value (15) specifies the expected number of characters that the textbox should allow.

  • Output Value: {Status}

    • The result of the verification is stored in this {Status} dynamic variable with the following possible values:

      • True: If the textbox length matches the expected value.

      • False: If the textbox length is not matches the expected value.

  • Logical Explanation: The verifyTextboxLength action takes the value from the Input Value column (15) and compares it with the actual character length of the targeted textbox and the execution status is stored in the {Status} variable as true.

Last updated

Was this helpful?