User's Manual

Table Of Contents
Working with Resource Scripts
Working with Test and Script Execution 14-5
Setting Default Runtime Environment Variables
To set default runtime environment variables that will be passed to each resource script executions, perform
one of the following options:
1. Open the Script Server preferences:
On the Active System Manager menu toolbar, click Window > Preferences > Test and Script
Execution > Script Server.
In the Resource Scripts view, select one or more resource scripts, right-click and select Pr
eferences.
2. In the Runtime Variable section, select Resour
ce Level Script or Session Level Script.
Table 14-1 lists the default environment variables.
Table 14-1 Default Environment Variables
Context Default Environment Variables
Resource Level Script Asset Tag
Version
Manufacturer
Model
Session ID
Session Name
Template Name
Owner
Session Level Script Session ID
Session Name
Template Name
Owner
3. Build the default environment variable list for each context clicking Variables to select from the default
variables list, or enter manually your environment name. Each variable must be separated by a space.
4. Click Apply or OK to save your preferences.
Starting a Resource Script
To start a resource script, perform the following steps:
1. Open the Resource Scripts view.
2. Open a running session open in your session editor (workspace) and select a resource in that session.
3. In the Resource Scripts view, select one or more resource scripts, right-click, and select Start.
The Execute Scripts dialog box displays. Depending on how many scripts you select, that number of
scripts will appear in the Execute Scripts dialog box.
Note To execute any test script, you must have a running session open.
4. Optional. Update individual script location or host information.