UFT , QTP 11.5 new feature Insight object recognizing



Understanding Insight Objects in UFT 11.5

QTP 11.5 has new features which I have specified in http://venkatgn.blogspot.in/2013/05/hp-qtp-11.html

Apart from the above specified features one of the most important features is how to recognize the objects in application using “image” of the object rather than the properties of the image.

The below navigation explains how the object is recognized using “image” recording in “insight mode”

·         Insight is an image-based identification of object in the application.
·         UFT stores an image of the object with insight test objects (Object Repository) and uses this image as main description property to recognize object in the application.
·         For the objects UFT can also use ordinal identifier to uniquely identify the object if 2 more more same images are there in the same page
·         Visual relation identifier can also be used to identify the object based on its relative position with respect to other near by objects in the application.  (up / left / right / bottom / above)

Adding Insight Objects into object Repository:

UFT allow adding Insight object either in recording Mode or manually in object repository:

1.      Insight Recording: When we start recording in UFT, There is an option to select recording mode. The recording modes in UFT are default, analog, Low Level recording, and Insight recording. When we select recording mode as Insight recording, UFT records object as insight object for images and identifies rest of objects like edit box as window object WinObject and perform action on them.



2.   Insight Objects can be added through Object Repository. Go to Resources>Object Repository. This will open Object Repository window. In Object Repository window, Navigate to Object>Add Insight objects to Local. This can also be added by icon as shown below.
Once we click on Add Insight objects to local, UFT asks to select Learn Mode which can be manual and automatic. Manual Mode provides magnifier to select minute objects in the application.


Adding object from object repository

Options available to work with Insight in UFT 11.5:
UFT 11.5 provides following options for working with insight objects. Options for Insight Object are at Tools>Options>GUI Testing>Insight. This pane enables you to define options that customize how UFT handles Insight test objects when creating test object, and during record and run sessions.
Options to customize the insight object are as follows:
a.   Save the clicked coordinates as the test object’s Click Point when recording a test object.
b.   When recording a test, display mouse operations.
options for insight 

c.   When editing shows test object image in steps and displaying Select learn mode dialog box
d.  Snapshots for insight object takes a lot of disk space, we can provide option to limit test object image, maximum pixels around image, and maximum number of snapshots to save when recording a test object




Comments