QTP / UFT - Insight: Image-Based Object Identification
With the help of image-based identification (Insight), QTP / UFT recognizes controls in an application based on what the controls look like.
We will try a very simple example and see how it works.
Launch QTP.
I have [ActiveX, Visual Basic and Web] addins and I used IE 8 for this test.
Open a new test.
Launch http://www.online-calculator.com/
Start recording.
Click 1
Click +
Click 2
Click =
It did not record anything for me.
Now lets try with Insight.
Open a new test.
Click on Record button or press F6. Choose Insight Recording as shown below.
Click 1
Click +
Click 2
Click =
It will record the following lines.
Run the test.
Test will pass as can be seen below.
This is just a starting point, as from here onwards you can try a whole lot of other things like dragging, dropping etc.
Important points related to Insight: Image-Based Object Identification
1. Insight can be used to test applications that run remotely on non-Windows operating systems.
2. Working with Insight can be useful if an application you are working with is not supported by QTP / UFT, or if an application is running on a remote computer.
3. UFT / QTP learns Insight Test Object Descriptions based on their appearance.To identify an object later QTP can store an image of it or can use ordinal identifier.
4. Mandatory / assistive properties / smart identification are not relevant for Insight test objects.
5. You can define visual relation identifiers for test objects.
For more indepth understanding on Insight see QTP User Guide.
With the help of image-based identification (Insight), QTP / UFT recognizes controls in an application based on what the controls look like.
We will try a very simple example and see how it works.
Launch QTP.
I have [ActiveX, Visual Basic and Web] addins and I used IE 8 for this test.
Open a new test.
Launch http://www.online-calculator.com/
Start recording.
Click 1
Click +
Click 2
Click =
It did not record anything for me.
Now lets try with Insight.
Open a new test.
Click on Record button or press F6. Choose Insight Recording as shown below.
Click 1
Click +
Click 2
Click =
It will record the following lines.
Run the test.
Test will pass as can be seen below.
This is just a starting point, as from here onwards you can try a whole lot of other things like dragging, dropping etc.
Important points related to Insight: Image-Based Object Identification
1. Insight can be used to test applications that run remotely on non-Windows operating systems.
2. Working with Insight can be useful if an application you are working with is not supported by QTP / UFT, or if an application is running on a remote computer.
3. UFT / QTP learns Insight Test Object Descriptions based on their appearance.To identify an object later QTP can store an image of it or can use ordinal identifier.
4. Mandatory / assistive properties / smart identification are not relevant for Insight test objects.
5. You can define visual relation identifiers for test objects.
For more indepth understanding on Insight see QTP User Guide.