Display Variable Value
This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to display the value stored in a variable during execution or debugging. The execution result is stored in the given dynamic variable
Syntax
Input Value: <variable>
<variable>
(Required)
Provide the name of the variable whose value you want to display.
Output Value: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Both dynamic variables store the status as True or False.
Example 1: Displaying the Value of a Stored Variable
In this example, we explain how to display the current value of an existing variable during test execution.
Action: Display Variable Value
Input Value: {EmpID}
The argument ({EmpID}) specifies the variable whose stored value needs to be displayed at runtime.
Output Value: {Status} (Optional)
If an output variable is provided, then action returns the execution status as True or False:
True: If the variable value is displayed successfully.
False: If the action fails due to an invalid variable name or missing value.
Logical Explanation: The Display Variable Value action retrieves the value stored in the variable provided in the Input Value column ({EmpID}) and shows it in the Avo Assure – Display Variable dialog box during execution or debugging. As shown in the screenshot, the value (331399) assigned to {EmpID} is displayed to help users verify or troubleshoot the stored data.


Example 2: Displaying a String Value from an Array Using Index
In this example, we explain how to fetch and display a specific element from an array-type dynamic variable.
Action: Display Variable Value
Input Value: {Values[1]}
The argument ({Values[1]}) specifies that the action should retrieve the value stored at index 1 of the dynamic array variable {Values}.
Output Value: {DisplayedValue} (Optional)
If an output variable is provided, then action stores the execution status with the following possible values:
True: If the value is retrieved successfully.
False: If the array does not exist or the index is invalid.
Using Array Index:
When the action displays the array, you access its values using index value as shown below.
{Values[0]} → stores 12
{Values[1]} → stores 34
{Values[2]} → stores 23
{Values[3]} → stores 45
Logical Explanation: The Display Variable Value action displays the 1st index value by using the ({Values[1]}) variable as input and displays the indexing value 34 in the Avo Assure - Display Variable dialog box.

Last updated
Was this helpful?