Assigning variables to schedule and user group

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

  1. In the Test Navigator view, double-click a schedule to open it.
  2. 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.
  3. In the Schedule Elements Details area, click the Variable Initialization tab and click Add.
  4. 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.
  5. 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.
  6. Click Options > Save.
Related concepts:
Schedule overview
User group overview
Working with agents
Related tasks:
Creating a schedule
Setting user loads
Adding a test to a schedule
Adding must run tests
Defining performance requirements in schedules
Repeating tests in a schedule
Delaying virtual users or actions
Running tests at a set rate
Running tests in random order
Adding a transaction to a schedule
Synchronizing users
Emulating network traffic from multiple hosts
Setting log and statistic levels

Feedback