Using Run-Time Variables
Note This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.
When a job executes, DTM makes information about the job available as run-time variables. Run-time variables describe the job and task as well as the execution environment.
The following table describes the run-time variables that are provided by DTM.
Variable name | Meaning |
---|---|
WTTJobName |
The name (TCM name) of the job to which the task belongs. |
WTTFullName |
Trace name or fully qualified name of the job, including the feature path. |
WTTJobGuid |
The globally unique identifier (GUID) for the job to which the task belongs. |
WTTResultGuid |
The GUID for the result of the job to which the task belongs. |
WTTRunGuid |
The GUID for the run that contains the job and any linked library jobs. |
WTTTaskGuid |
The GUID for the task being run. |
WTTMachinePoolName |
The name of the machine pool that is being scheduled. |
WTTLMSName |
The LMS that the task is assigned to. |
<LMSName> |
This name is mapped to a comma separated list of physical computers that correspond to this LMS. For example, with an LMS named MYLMS that contains three computers, "[MYLMS]" within a task will expand to "computer1,computer2,computer3". |
WTTTargetMachineName |
The physical computer that the task is running on. You can also get this from the [machinename] environment variable. |
WTTRunWorkingDir |
Default working directory for the job run. |
WTTCopyLogsDest |
Location to which test logs are copied when using a Copy Result task. |
WTTControllerName |
Name of the Controller/Push Daemon computer. |
WTTDbMachineName |
Name of the SQL Identity Server computer. |
WTTDbName |
Name of the logical datastore. |
To evaluate a variable, enclose the name of the variable in square brackets.
Build date: 9/14/2012