In addition to assigning variables at the test level, you
can assign variables at the schedule level and user group level. When
you assign variables at the schedule level, all the tests and user
groups in the schedule can use the variable initial values, if they
have the same variable names.
About this task
When you initialize variables at the schedule level, all
the user groups in the schedule use the variable initial values, except
those for which a specific value is defined. If the same variable
initial value is defined at the user group level and schedule level,
precedence is given to the user group level and then to the schedule
level. If the visibility of a test variable is set to
This
test only, the test does not use the value that is defined
at the user group level or schedule level.
Procedure
- In the Test Navigator view, double-click
a schedule to open it.
- To assign a variable at the schedule level or a user group
level, in the Schedule Contents area, select a schedule or a user
group.
- In the Schedule Elements Details area,
click the Variable Initialization tab and click Add.
- Type a variable name and its initial value. If
you have already defined the variables at the test level and want
to reuse them, click Select existing variables.
- Optional: To use the variables from an existing
file, click the Use variable initial values file check
box, browse for the file, and click Finish.
- Click .