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

For some Windows-based applications, you also use the dialog box to specify the specific applications you want UFT to recognize during record, run, and Object Spy sessions. For example, you can choose to have UFT 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. This is because UFT automatically applies the saved record and run settings.

You configure the settings from one of the following tabs:

The Record and Run Settings dialog box always contains the Windows Applications tab. It may contain other tabs corresponding to add-ins that are loaded. For details on which tab of the Record and Run Settings dialog box you should use with an add-in, see the relevant add-in section.

For details on defining record and run settings, see the relevant add-in environment section, for example, Windows Applications Tab (Record and Run Settings Dialog Box) if you are testing a standard Windows-based application.

In addition to setting the appropriate settings in the specific application tabs, you should confirm that the other tabs in the dialog box have the appropriate settings.

The following settings are recommended:

  • Windows Applications tab. When not running Windows-based applications, select Record and run only on: and confirm that all three check boxes are cleared.

  • Other tabs. (If displayed.) Select the option to record and run on any open application (upper radio button of each tab).

While these settings do not directly affect your record or run sessions, they prevent you from inadvertently recording operations performed on Windows applications (such as e-mail) during your recording session. These settings also prevent UFT from opening unnecessary applications when you record or run tests on Windows-based applications.

After defining the connection information for Mobile Center 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.