Create Dynamic Variable
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
Input Value: <variable name>;<value to be stored>
Note: The variable created should be within curly brackets.
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
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
Knowledge Bites: Below are some examples of different variable scenarios
Text Strings
{String};AdminUser
AdminUser
Numeric Strings
{Number};35629
35629
Special Character
{Email Id};john@gmail.com
john@gmail.com
Alphanumeric strings
{Alphanumeric};OR1002
OR1002