Watch Variable Value

During the testing of an automation, you can watch various variable values in the Watches section of the Tester panel.

  • You can watch the values of the variables used in an automation.

  • You can watch the values of the expressions used in the custom script or formula editor of an automation.

  • You can watch the values of the nested elements of a complex list output.

Procedure

To watch a variable value, follow the below procedure:

  1. In a workflow of your automation, select the activity for which you want to watch the variable value.

  2. Under Output Parameters, on the output parameter field right-click and then select Watch this.

    OR

    Click the icon.

    The Edit Expression dialog is displayed.

    Select the appropriate variable and then Save Expression. For more details about editing an expression, refer to the Expression Editor section.

    To be watched variable is added to the Watches list.

  3. Add a break-point. This makes the automation pause at the break-point.

    The break-point will help you to evaluate variable value during testing of an automation.

    For example, if you want to watch the variable values of the step 1 and step 2 of a workflow, then add the break-point at step 3.

    For more details about defining a break-point, refer to the steps 1 to 4, in the Test an Automation section.

  4. Test an automation to evaluate various variable values.

    For more details about testing an automation, refer to the Test an Automation section.

Delete Watch Variable

  1. In the Watches list, select to be deleted variable.

  2. Click the icon.

    The variable is deleted from the Watches list.

Remove All Watches

Use this option to remove all variables from the Watches list.

Copy Value

Use this option to copy the variable value.

Edit

Use this option to edit the variable value.

Remove Watch

Use this option to remove specific variable from the Watches list.

Multiple Automation Watch Variables

Active automation watch variables shown at the top of the Watches list. We can access only the currently executing automation variables.

Add Variables to Watches

You can add variables of your automation to Watches by selecting the check box of a variable under the Watch column of the Variables tab.

After you select a variable, the selected variable is added under Watches.