Create Dynamic Variable
This is a pre-built action, located under @Generic element. This action instructs Avo Assure to create a dynamic variable and assign the value according to the input value and save the result in dynamic variable.
Syntax
Input Value: <variable name>;<value to be stored>
Note: The variable created should be within curly brackets.
The Create Dynamic Variable action stores the value in an array format also, for example: {Array};[1,2,3,4,5]. To retrieve a specific value from the array (e.g., the second value), use the syntax: {Array[2]} in this format.
The index stare with 0
variable name
(Required)
The name of the variable you want to create
<value to be stored>
(Required)
The actual data you want to store in the variable. Supported variable: Number, string, alphanumeric, special characters, etc
Output Value:
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
This variable stores the status as true or false
Example 1
Create a dynamic variable at runtime with a specific value The Create Dynamic Variable action takes input in the format {VariableName};Value (e.g., {Username};AdminUser) from the Input Value column. It stores the specified value (AdminUser) in the dynamic variable named {Username}, which can be used across multiple steps in the Test Case. The action's execution status is stored in the {Status} variable with the following possible values:
True – if the variable is created and assigned successfully
False – if the action fails

Example 2
Performs creation of a dynamic variable with a specified name and value
The Create Dynamic variable action takes the value from the Input Value column (e.g., Array;[1,2,3,4,5]) and creates a dynamic variable with the provided name. The value is stored in an array format and can be referenced in subsequent steps. The entire array is stored in the {Array} variable, and individual elements can be accessed using an index-based reference (e.g., {Array[2]} to retrieve the second value).

Knowledge Bites: Below are some examples of different variable scenarios
Text Strings
{String};AdminUser
AdminUser
Numeric Strings
{Number};35629
35629
Alphanumeric strings
{Alphanumeric};OR1002
OR1002
Array
{Array};[1,2,3,4,5]
[1,2,3,4,5]
Last updated
Was this helpful?