Copy Value
This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to copy the value stored in an existing variable to a newly created variable. The execution result is stored in the given dynamic variable.
Syntax
Input Value: <target variable>;<source variable>
<target variable>
(Required)
Provide the name of the variable whose value you want to update.
<source variable> (Required)
Provide the name of the variable whose value will be copied to the target.
Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)
<Dynamic Variable>(Required);<Dynamic Variable>(Optional)
Both dynamic variables store the status as True or False.
Example: Copying the Value from One Variable to Another
In this example, we explain how to copy the value from an already existing variable into a new variable.
Action: Copy Value
Input Value: {EmpID};{Username}
The first argument ({EmpID}) specifies the source variable from which the value is taken.
The second argument ({Username}) specifies the target variable where the value is stored.
Output Value: {Status}
The status of the action is saved in the {Status} dynamic variable with the following possible values:
True: If the value is successfully copied.
False: If the action fails due to an invalid variable name or the source variable not being found.
Logical Explanation: The Copy Value action takes the value from the Input Value column ({EmpID};{Username}) and copies the data stored in {EmpID} into {Username}. This is useful when the same data needs to be referenced using a different variable name during execution. After performing the copy operation, the action stores the execution status (True) in the {Status} variable.

Last updated
Was this helpful?