Copy Value
Last updated
Last updated
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.
Input: <target variable>; <source variable>
Note: The variable names should be within curly brackets.
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)
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.
1. Input Data:
Target Variable: 1. {Useremail} with email id of user.
Source variable: 2. {Billingemail} for copied email id of user.
2. 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.