Record and run settings for add-ins

Before you record or run a test on an application, you can use the Record and Run Settings Dialog Box to instruct UFT One which applications to open when you begin to record or run your test. You can set your record and run options in the Record and Run Settings dialog box, or you can set the options using environment variables.

Using Record and Run settings

For some Windows-based applications, use the dialog box to specify the specific applications you want UFT One to recognize during record, run, and Object Spy sessions. For example, you can choose to have UFT One open a specific application when you start a record or run session.

The Record and Run Settings dialog box opens automatically each time you begin recording a new test and saves your settings with that test. Subsequently, when you perform additional record or run sessions on existing tests, the Record and Run Settings dialog box does not open.

Configure the settings from one of the following tabs (depending on what add-ins are loaded when starting UFT One):

When using the Windows applications tab, we recommend selecting the Record and run only on: option. While this setting does not directly affect your record or run sessions, it prevents you from inadvertently recording operations performed on Windows applications (such as e-mail) during your recording session. These settings also prevent UFT One from opening unnecessary applications when you record or run tests on Windows-based applications.

After defining the connection information for Digital Lab (UFT Mobile) in the Mobile pane of the Options dialog box (Tools > Options > GUI Testing tab > Mobile node), a remote access window opens every time a record or run session begins. To prevent this window from opening when you are not testing mobile applications, select Do not record and run tests on mobile in the Mobile pane of the Record and Run settings dialog box.

Back to top

Using environment variables

In addition, use special, predefined environment variables to specify the applications or browsers to use. This is 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 added in the Record and Run Settings dialog box.

Define the environment variables as internal user-defined variables or add them to an external environment variable file and set your test to load environment variables from that file.

Alternatively, you can define environment variables before you record your test. In this case, UFT One 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.)

Back to top