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.

Back to top

Upload the environment resource file to ALM

  1. 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.

  2. In UFT One, connect to the ALM project.

Back to top

Use environment variables in your test

  1. Open the Environment pane in the Test Settings dialog box (File > Settings > Environment node). For details, see Environment Pane (Test Settings Dialog Box).

  2. Select User-defined from the Variable type list.

  3. Select the Load variables and values from external file (reloaded each run session) check box.

  4. 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.

Back to top

Results

You can now select the variables in the active file as external user-defined environment parameters in your test. For details, see Parameter Options Dialog Box.

Back to top

See also: