Initializing variables from the command line
To initialize test variables from an XML file, you can run the test from the command-line interface using the varfile option.
-
You must read and familiar with command line parameters. See Command-line parameters.
-
You must have completed the following tasks:
-
Declared the variables using Test Performance.
-
Created an XML file that contains the variables with values. The XML file would have a structure similar to the following image:

-
If a variable is initialized at various places such as test, compound test,
schedule, or user group, the product uses the following order to initialize the value of the
variable when running the test. The variable set in the variable table of the compound test
editor takes the highest precedence followed by others:
- Compound test setting in the variable table UI
- Compound test specified in a var file
- User group setting in the variable table UI
- User group specified in a var file
- Schedule specified setting in the variable table UI
- Schedule specified in a var file
- Command line
Note:
You must select All tests for this user
from the Visible in drop-down list to take the precedence of variable
initialization.