Modify Variable Value
This is a pre-built action located under @Generic element instructs Avo Assure Client to change the value in existing variable to another variable value.
Syntax
Input: <variable whose value needs to be changed>; <new value>
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)

Use case/Example

Scenario: Banking Application with Account Balance
You are testing a Banking application where a user is deposited and withdrawal of the money from a bank account. It allows you to modify the bank Balance according to transaction of money in account. It ensures that the system responds correctly to user actions after each transaction changing amount and helps verify that bank balance is updated accordingly. The initial Balance stores a value of 100 and the modified bank Balance updates this to 300.
Input
Initial Balance {InitialBalance}: 300 (Balance is updated to the account with a balance from 100to 300)
Expected Result
The variable {InitialBalance} is updated to reflect the new value to 300.
Output
The updated quantity value stores in initialBalance as 300 which can be utilized for further work.
Last updated
Was this helpful?