String Generation

The String Generation action creates a random string of a specified length and type.

Syntax:

Input Value: <type>;<length>

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

Argument
Description

<type>

Provide the type of string to generate. Supported types: Char (alphabets), Num (numbers).

<length>

Provide the length of the string to generate. Must be a positive integer.

<Dynamic Variable>

This variable stores the generated string.

<Dynamic Variable>(Optional)

Stores the generation status as True or False.

Output: Upon the usage of this action, here are the possible returns and their reasons:

Returns
Reason

Output

Displays the actual string generated based on the input type and length.

None/Blank

If the Input Value is missing or not in a valid format (e.g., AlphaNum).

True

If the string generation is successful.

False

If the invalid type or length provided.

Examples:

Scenario 1: Generate an 8-character alphabetic string.

  • Input Value: Char;8

  • Output Value: {String} = "XJDKLMNO"; {Status} = True

Scenario 2: Generate a 5-digit numeric string.

  • Input Value: Num;5

  • Output Value: {String} = "49217"; {Status} = True

Last updated

Was this helpful?