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.
Dynamic variable values are not fixed—they can be updated at any point during test execution using the Modify Variable Value action.
The index start with 0
When you create a Dynamic Variable in a Test Step Group, its value can be used in any Test Case or Test Step Group within the same project.
The created dynamic variable can be accessed and reused while creating an End-to-End flow within the same project
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 variable is not created.

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 value. 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?