String Generation

This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to generate a random string of a specified length. The system automatically creates the string based on the input value and stores the generated result in a dynamic variable for further use during test execution.

Syntax

Input Value: <type>;<length>

Note: This option allows the user to specify the type of input that will be used to generate the random string. It supports two types: Char and Num

Argument
Description

<type> (Required)

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)

<length> (Required)

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 Value: <Dynamic Variable>; <Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This variable stores the generated string.

<Dynamic Variable> (Optional)

This variable stores the status as True or False.

Example 1: Generating a String with Specific Type and Length

In this example, we explain how to generate a string based on the provided type and length.

The String Generation action fetches the value from the Input Value column (Char;4). The input includes the String Type (Char) and the Length (4). This action generates an 8-character alphabetic string (e.g., axyX) and stores it in the {Generated String} variable.

Knowledge Bites: Below are some examples of different string scenarios.

String Type
Input Value (syntax)
Result

Character

Char;8

uESrOCsL

Number

Num;5

45689

Last updated

Was this helpful?