TruClient Properties

These properties can be used as arguments in any JavaScript evaluated field. For example, they can be passed as arguments to TruClient functions.

Caution: Invoking these properties causes an error if replayed in TruClient Lite.

Property Description
LR.userId
The user ID as it appears in the MDRV command line. MDRV is the main process that runs all protocols. LR.userId returns a valid response only when running from Controller; otherwise it returns -1.
LR.groupName
The group name as it appears in the MDRV command line. MDRV is the main process that runs all protocols. If the process was started by VuGen its value is 0.
LR.scenarioId
The scenario ID as it appears in the MDRV command line. MDRV is the main process that runs all protocols. The scenario ID exists only if MDRV was started by Controller, if it was started by VuGen its value is 0.
LR.outputDir
The user output folder that contains all the output for the script. For VuGen the output folder and script folder are the same. For Controller they are different. The returned path includes the last folder separator.
LR.scriptDir
The user script folder. You can store external files in the script folder such that when you want to include them in your script, you can append the filename of your external file to LR.scriptDir.

Back to top

See also: