Use user-defined external environment variables
Relevant for: GUI tests only
This topic describes how to use user-defined external environment variables.
Create an external environment variables file
You can create an external environment variable file using the Test Settings dialog box or manually. For details, see Create an external environment variable file manually.
Upload the environment resource file to ALM
In the ALM Test Resources module, create a new environment variable resource and then upload the .xml environment variable file you want to use with your test.
In UFT One, connect to the ALM project.
Use environment variables in your test
Open the Environment pane in the Test Settings dialog box (File > Settings > Environment node).
For details, see Environment Pane (Test Settings Dialog Box).
Select User-defined from the Variable type list.
Select the Load variables and values from external file (reloaded each run session) check box.
Use the browse button to the right of the File edit box, or enter the full path of the external environment variables file you want to use with your test. If your test is stored in ALM, you must select an file that is stored with your ALM project.
The variables defined in the selected file are displayed in the list of user-defined environment variables.
You can now select the variables in the active file as external user-defined environment parameters in your test.