Get String Length
Last updated
Last updated
This pre-built action, found under the @Generic Element Name, instructs the Avo Assure client to determine the number of characters in a provided string. It retrieves the string's length from the Input column and stores the result in an output variable.
Input: <string>
1. string: it will store the Input string of which user wants to fetch the length
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
In a user registration form, users are required to create a password that meets specific strength criteria, including a minimum length. As part of the testing process, you want to ensure that the application correctly calculates the length of the password entered by the user.
Input: The user enters a password in the registration form, such as:
Password: P@ssw0rd123
Expected Result: The application requires the password to be at least 8 characters long. You want to verify that the length of the entered password meets this requirement.
Output: The output is stored in the {result} output variable as 11, which can be utilized for display or other purposes.