Qt Add-in - Quick Reference

You can use the Qt testing support provided by UFT to test user-interface objects (controls) developed using the Qt framework for mobile devices.

The following tables summarize basic information about Qt testing support and how it relates to some commonly-used aspects of UFT.

General Information

Add-in Type

The Qt Add-in is a Windows-based add-in. Much of its functionality is the same as other Windows-based add-ins.

Important Information

Working with the Qt Add-in

Test Object Methods and Properties

The Qt Add-in uses a sub-set of the standard Windows test objects, methods, and properties, which can be used when testing objects (controls) in Qt applications. For details, see the Standard Windows section of the UFT Object Model Reference for GUI Testing.

Prerequisites

Opening Your Application

You must open UFT before opening your Qt application.

Add-in Dependencies

None

Low Level Recording

To enable low level recording on Qt controls, you must first modify the object description properties list for the WinObject test object class, as follows:

  • Add the regexpwndtitle property to the mandatory properties list.

  • Move the object class property up the assistive properties list so that it is learned before the text property.

Configuration

Configuration Options

Use the Windows Applications pane.
(Tools > Options > GUI Testing tab > Windows Applications node)

Record and Run Settings

Use the Windows Applications tab.
(Run > Run Settings or Record > Record Settings)

UFT recognizes Qt objects only in applications that are opened after changing settings in the Windows Applications tab of the Record and Run Settings dialog box.

Custom Active Screen Capture Settings)

Use the Windows applications section.
(Tools > Options > GUI Testing tab > Active Screen node > Custom Level)

Application Area Additional Settings

Use the Applications pane.
In the application area, click Additional Settings in the sidebar and select the Java node