Thursday, 20 November 2014

Object Spy

In the previous example we discussed, Object Spy is the tool available in QTP which is used to get the properties about a particular object.

Advantages of Object Spy

1. It will give the complete hierarchy of an Object.
2. It will give the Native and Identification properties and its values.
3. It will give the Operations/Methods of an Object.

How to Use Object Spy

Let’s start with simple example, open Internet Explorer and navigate to google.com. In QTP go to Tools -> Object Spy. Click on the hand symbol in the Object Spy window and place the cursor over the Search WebEdit on Google page. Object Spy will display the hierarchy and Properties and its values of the Search WebEdit.
Object Spy

If QTP is not identifying the Object Properly

• You should open the AUT only after opening QTP
• Make sure your Browser zoom settings is set to 100%
• Make sure all the appropriate Add-in are added
• In your IE Browser open Internet Options -> Security and uncheck “Enable Protected Mode” checkbox.
• For Windows 7 Users, type UAC in the Control Panel search box and open User Account Control Settings. Change the Setting level to Never Notify and restart the system.

No comments:

Post a Comment

QTP/UFT Tutorials © 2014. All Rights Reserved | Powered by-Blogger | Designed by-Dapinder