6 Notes About HP UFT 12.52

The test tool HP Unified Functional Testing (UFT) provides support for UI Automation testing as of version 12.52. However, UFT does not fully support all UIA Control Types, but is limited to the most important Control Types and Control Patterns. Therefore, this chapter is only informative and should not replace reading the UFT documentation.

The UIA (UI Automation) support of UFT can be outlined as follows:

This means that not all IDM object classes are distinguishably recognized as test objects with own UIA Class by UFT. This includes the IDM object classes:

However, these should be recognized by UFT as generic UIAObjects and capable of being sufficiently tested and manipulated by the supported Pattern Methods.

It should be noted that with UI Automation Microsof covers the domains of accessibility and test automation, but does not provide full and correct capturing of user interaction. In this respect, the recording of user interaction by UFT in UI Automation Mode is often incomplete and may also be faulty.

This can be seen, for instance, when recording a menu interaction on a submenu. UFT generates the following malfunctioning script, which does not contain a Click on the menu:

UIAWindow("Main window").UIAMenu("Application menu").UIAObject("File").Expand
UIAWindow("Main window").UIAMenu("File").UIAObject("Submenu").Expand

A working script however would look like this:

UIAWindow("Main window").UIAMenu("Application menu").UIAObject("File").Click
UIAWindow("Main window").UIAMenu("File").UIAObject("Submenu").Click
UIAWindow("Main window").UIAMenu("File").Select "Submenu;Menu A"

Recording in Windows Mode produces the following working script:

Window("Main window").WinMenu("File").Select "File;Submenu;Menu A"