Source: http://venkatgn.blogspot.com/2014/03/uft-qtp-115-new-feature-insight-object.html
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
Source:http://uftquestions.blogspot.com/2014/05/uft-qtp-difference-between-insight.html?showComment=1450982175543#c6826735119712981732
UFT - QTP - Difference between Insight Recording and Low level Recording?
Here are the difference
Insight Recording
|
Low-Level Recording
|
Recognizes controls based on their appearance, and not their native properties | Recognizes every control as Window or WinObject object |
Recognizes object based on Image processing Technology | Recognize object based on X and Y coordinates |
Insight recording records parent & child object with relevant test object properties just like normal recording if the object gets recognized with Normal recording and any other objects as InsightObject | UFT records all parent level objects as Window test objects and all other objects as WinObject test objects |
Dual monitor support. When recording in Insight mode, UFT records only on the primary monitor. Therefore, if you are working with dual monitors, make sure that your application is visible on the primary monitor during a recording session | Steps recorded using low-level recording mode may not run correctly on all objects. |
Insight recording requires more disk space than normal recording mode, because of the test object image and the snapshots stored with the test object.
To control the amount of space used, you can adjust the number of snapshots saved and their size in the Insight Pane (Options Dialog Box > GUI Testing Tab). These settings can also affect UFT performance when recording and running Insight steps.
Insight recording requires more space when compared to Low-level recording and depends on the scenario you are working on
|
Low-level recording requires more disk space than normal recording mode.
We may not be able to optimize the space used by low-level recording
Low-level recording requires less space when compared to Insight recording and depends on the scenario you are working on. |
When created, all Insight test objects are named InsightObject, with an incremental suffix added if necessary, to avoid duplicate test object names within a single parent test object.
| Does not apply - Usually only Window and Winobject test objects are only shown even after multiple webpage navigations and clicks |
Only use Insight recording for mouse events. When possible, keyboard events should be recorded using standard or low-level recording.
|
Low-Level Recording can be used for capturing Mouse and keyboard activates on test object
|
This comment has been removed by the author.
ReplyDelete