Windows Applications Tab (Record and Run Settings Dialog Box)

This tab enables you to define preferences for recording and running tests on Windows-based applications.

To access

Select Record > Record and Run Settings and then select the Windows Applications tab.

Important information

  • You can instruct UFT to open and record on applications from more than one environment.
  • For some Windows-based add-ins, the settings in this dialog box may also affect the applications that UFT recognizes for other UFT operations, such as learning objects or using the Object Spy. For details, see Record and run settings for Windows-based add-ins.
  • For performance reasons, the default setting in the Windows Applications tab is set to record and run only on the applications you specify (and not on any open application). If you do not specify an application or change this option, UFT will not record or run on any Windows-based application.
  • If you loaded other add-ins when you opened UFT, there may be additional tabs in the Record and Run Settings dialog box. If this is the case, confirm that in each additional tab, the option to record and run on any open application (upper radio button of each tab) is selected.

    While this setting does not directly affect your record or run sessions, it prevents UFT from opening unnecessary applications when you begin record or run sessions.

See also

User interface elements are described below:

UI Elements Description
Record and run test on any open Windows-based application

Instructs UFT to record all operations performed on any Windows-based application that is opened while recording your test (including e-mail applications, file management applications, and so on). UFT records and runs only on applications that have a user interface, and it does not matter how the applications are opened (as child processes of Windows Explorer, child processes of UFT, and so on).

When selecting this option, make sure that all the applications on which you want to record are currently closed. For some environments, UFT can recognize and/or record on the applications that you open manually only after you select this option and click OK. Instances of these applications that are already open when the Record and Run Settings dialog box opens may be ignored or may not be recognized or recorded correctly.

Record and run only on

Restricts record and run (and in some cases pointing hand) operations to selected applications. Additionally, you can configure whether UFT should open these applications for you at the beginning of a record or run session. The following options are available:

  • Applications opened by UFT. This option records, recognizes, and runs only on applications invoked by UFT (as child processes of UFT). For example, applications opened during a record or run session using a SystemUtil.Run statement, or using a statement such as:

    Set shell = createobject("") "notepad".
  • Applications opened via the Desktop (by the Windows shell). This option records, recognizes, and runs only on applications that are opened via the Windows Desktop. For example, applications opened from the Windows Start menu, by double-clicking executable files in the Windows Explorer, by double-clicking a shortcut on the Windows Desktop, or by clicking icons on the Quick Launch bar.
  • Applications specified below. This option records, recognizes, and runs only on applications listed in the Application details area.

    If you do not want to record on any Windows-based applications, select only the Applications specified below check box, and ensure that there are no applications listed in the Application details area.

Application details

The details of the applications on which to record and run the test. For details on the details displayed, see Application Details Dialog Box.

If you define values for one or more environment variables, those values override the values in the Windows Applications tab during a test run.

Add. Opens the Application Details Dialog Box to enable you to add an application to the application list. You can add up to ten applications.

Edit. Opens the Application Details Dialog Box to enable you to edit the application details for the selected application.

Delete. Removes the selected application from the application list.