Viewing variable usage – MTS Multipurpose Elite User Manual
Page 177

Viewing Variable Usage
Access
Define tab > Variables tab
The Used By column in the Variables table indicates if and where a variable is used in the application.
This column also shows any views in the application that use the variable. The table does not automatically
show the Used By column. You must either right-click and select Update Used By or click the Variable
Actions icon (next to the red minus sign) and select Update Used By. You can also add the column using
Column Chooser, but all entries are set to “Unknown.” Click Update Used By to update where variables
are used.
The Used By information is useful if you need to:
•
Edit a variable used by more than one process. If a variable is used by multiple processes, you may
want to create a new variable rather than edit a variable and impact all its uses.
•
Troubleshoot a complex test definition.
•
Delete or replace a variable definition. If you delete a variable that is in use, validation errors occur in
the project where the deleted variable is referenced.
Variable Usage
After you update the Used By information, click the arrow in the Used By column for the variable you want
to investigate. The window lists the locations where the variable is in use. To view the context in which a
variable is used, click on the entry:
•
For a calculation, the entry for the calculated variable becomes selected.
•
For an activity, the Procedure appears in the work area with the activity selected.
•
For a test-run display, the Test-Run Display tab appears when you select the view.
•
For a data acquisition, the Data Acquisition window appears with the corresponding entry selected.
If the variable is defined but unused, the Used By column shows “Not Used.”
For More Information
Task
Selecting Columns Shown in the Variables Table
(p. 175)
Showing and Hiding Disabled Variables
(p. 176)
Showing and Hiding Read-Only Variables
(p. 176)
MTS TestSuite | 177
Working with Variables