Thursday 5 April 2012

Built-in Environment Variables

Built-in Environment Variables:

QuickTest provides a set of built-in variables that enable you to use current information about the test and the QuickTest computer running your test. These can include the test name, the test path, the operating system type and version, and the local host name.

For example, you may want to perform different checks in your test based on the operating system being used by the computer that is running the test. To do this, you could include the OSVersion built-in environment variable in an If statement.

You can also select built-in environment variables when parameterizing values.

The following built-in environment variables are available:

Name

Description

ActionIteration

The action iteration currently running.

ControllerHostName

The name of the controller's computer. This variable is relevant only when running as a GUI Vuser from the LoadRunner controller.

GroupName

The name of the group in the running scenario. This variable is relevant only when running as a GUI Vuser from the LoadRunner controller.

LocalHostName

The local host name.

OS

The operating system.

OSVersion

The operating system version.

ProductDir

The folder path where the product is installed.

ProductName

The product name.

ProductVer

The product version.

ResultDir

The path of the folder in which the current test results are located.

Note: You cannot use the ResultDir environment variable when running a test from Business Availability Center, LoadRunner, or the Silent Test Runner in QuickTest.

ScenarioId

The identification number of the scenario. This variable is relevant only when running as a GUI Vuser from the LoadRunner controller.

SystemTempDir

The system temporary directory.

TestDir

The path of the folder in which the test is located.

TestIteration

The test iteration currently running.

TestName

The name of the test.

UpdatingActiveScreen

Indicates whether the Active Screen images and values are being updated during the update run process. For more information, see Updating a Test Using the Update Run Mode Option.

UpdatingCheckpoints

Indicates whether checkpoints are being updated during the update run process. For more information, see Updating a Test Using the Update Run Mode Option.

UpdatingTODescriptions

Indicates whether the set of properties used to identify test objects are being updated during the update run process. For more information, see Updating a Test Using the Update Run Mode Option.

UserName

The Windows login user name.

VuserId

The Vuser identification under load. This variable is relevant only when running as a GUI VUser from the LoadRunner controller.

No comments:

Post a Comment