You can use special, predefined environment variables to specify the applications or browsers you want to use for your test. This can be useful if you want to test how your application works in different environments. For example, you may want to test that your Web application works properly on identical or similar Web sites with different Web addresses.
When you define an environment variable for one (or more) of the application details, the environment variable values override any values that were added using these areas of the Record and Run Settings dialog box.
Note: If you select the option to Record and Run on any application (the upper radio button in each tab of the Record and Run Settings dialog box), UFT ignores any defined Record and Run environment variables.
You can define the environment variables as internal user-defined variables, or you can add them to an external environment variable file and set your test to load environment variables from that file.
You can set your Record and Run settings manually while recording your test and then define the environment variables or load the environment variable file only when you are ready to run the test (as described in the procedure below).
Alternatively, you can define environment variables before you record your test. In this case, UFT uses these values to determine which applications or browsers to open when you begin recording—assuming that the option to open an application when starting record and run sessions for the particular environment is selected. (This option corresponds to the lower radio button in each tab of the Record and Run Settings dialog box, and the third check box in the Windows Applications tab.)
For details on setting and modifying environment variables, see Define record and run settings for UFT add-ins.