Environment Pane (Test Settings Dialog Box)
Relevant for: GUI tests and scripted GUI components
This pane displays existing built-in and user-defined environment variables. It also enables you to add, modify, or delete internal user-defined environment variables, export the defined variables to an external .xml file, and retrieve them from a file.
To access |
With a test, action, or scripted component in focus, select File > Settings > Environment. |
Important information |
Variables from an external environment variables file are displayed in blue. Internal environment variables are displayed in black. If you use an Environment statement to retrieve the operating system value on Windows Server 2016, it returns an incorrect value of Windows Server Technical Preview. |
See also |
This pane includes the following key areas:
UI Element |
Description |
---|---|
Variable type |
Enables you to select either a Built-in environment variable or a User-defined environment variable to define. |
Relevant for: GUI tests and scripted GUI components
Displays the built-in environment variables defined by UFT One and their current values.
This area provides the following information:
UI Element |
Description |
---|---|
Name |
The name of each built-in environment variable. |
Description |
A short description of each built-in environment variable. |
Current value |
The current value of the selected environment variable. |
Relevant for: GUI tests only
Displays both internal and external user-defined environment variables and their current values.
This area provides the following information:
UI Element |
Description |
---|---|
Name |
The name of each user-defined variable. |
Value |
The value assigned to each user-defined variable. |
Type |
The type of each user-defined variable: Internal or External. Internal environment variables are available only to the test in which they are defined. |
Enables you to define a new internal environment variable and add it to the list. For details, see Add New/View/Edit Environment Parameter Dialog Box. |
|
Deletes a selected internal environment variable from the list. Note: After you confirm the deletion of the environment variable, you cannot retrieve it, even if you click Cancel in the Test Settings dialog box. |
|
Enables you to edit the value of a selected internal environment variable or to view the properties of a selected external environment variable. For details, see Add New/View/Edit Environment Parameter Dialog Box. |
|
Export |
Exports your user-defined environment variables to an external .xml file for use with other tests. You can then use the exported environment variable file with any test by loading them from the file as external user-defined environment variables. Note:
|
Load variables and values from external file |
Instructs UFT One to load the variables saved in the .xml file that you specify for use with your test. |
File |
The environment variable .xml file to load and use when your test runs. Click the Browse button to open the Open XML File dialog box. For details, see Open/New/Save/Add Existing <Document>/<Resource> Dialog Box. |