String Generation

The String Generation action in Avo Assure is found under the @Generic Element. It is used to generate a random string of a specific length. The system generates the string and stores the result in a dynamic variable.

Syntax

Input Value: <type>;<length> 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

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

Argument
Description

<Dynamic Variable> (Required)

This variable stores the generated string

<Dynamic Variable> (Optional)

This variable stores the status as True or False

Example: Generate a string with specific Type and Length

The String Generation action takes the values from the Input value column (Char;8) and generates an 8-character alphabetic string (XJDKLMNO). The generated string is stored in the {Generated String} variable, while the generation status is stored in the {Status} variable, with the following possible values:

  • True – if the string generated or

  • False – if the invalid type or length

String
Input Value (syntax)
Result

Text Strings

Char;5

Order

Numeric Strings

Num;5

45689

Last updated

Was this helpful?