Copy Value
This is a pre-built action in Avo Assure and comes under @Generic element. This action instructs Avo Assure to copy the value in existing created variable to a newly created variable and save the status in output variable.
Syntax
Input: <target variable>; <source variable>
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)

Use case/Example

Scenario: Duplicating User Information for Form Validation
Suppose you are testing a user registration flow in a web application where you need to reuse the same user details across multiple forms, such as a registration form and a billing information form. Instead of re-entering the data manually, it used to duplicate the user information. It ensures consistency when the same information needs to be reused across different fields or forms during testing. It Verify that both{Useremail} and {Billingemail} hold the same value.
Input
Target Variable: 1. {Useremail} with email id of user.
Source variable: 2. {Billingemail} for copied email id of user.
Expected Result
The new variable {User Email} contains the same value as {Billing Email}.
Output
The output value {result} contains True as the result which means that the value has been copied successfully, which can be utilized for further work.
Last updated
Was this helpful?