String Generation
Last updated
Last updated
The String Generation action in the Avo Assure is found under the @Generic Element it used to create a random string of a specific length the system generates the string and stores the result in an output variable.
Input: <type>;<length>
1. Type: This option allows the user to specify the type of input that will be used to generate the random string. It supports two types:
a. Char (Character): When this option is entered, the generated random string will consist of alphabetic characters (a-z, A-Z).
b. Num (Number): When this option is entered, the generated random string will consist of numeric digits (0-9).
2. Length: This input defines the length of the random string to be generated. The user specifies how many characters or numbers the generated string should contain.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
When the user is testing a login form that requires unique identifiers, like a temporary password, it generating a random string is useful to avoid duplicates. If the system needs a random 6-character password, the String Generation action will generate the temporary string and save it in an output variable. During the test, user can use the random string to fill in the password field.
Input: In input values user supposed to give variable type as followed:
Char;5
Expected Result: Input string should be generating the random character or number.
Output: The result of String Generation action is stored in the {result} output variable as “yFlBA” (For Character), which can be utilized for display or other purposes.