Automation Testing Tutorial | Object Spy

Object Spy is a utility/option within QTP to add objects to the Object Repository. It can be accessed from the tool bar as shown below:

1. Upon Clicking on the Object Spy icon, the Object Spy Dialog box opens. The Objects can be added to the repository upon clicking the pointing hand.

2. After Spying the object, the object hierarchy will be shown. Let us say, we are spying the “Numbers” link at “http://easycalculation.com/”. The Object properties will be as shown below

3. After Spying an object, we can click on “Highlight” option to highlight the object in the application.

4. For adding the object into the Object Repository, one should click on “Add objects” button in the Object spy dialog.

5. The properties and its values are displayed for the selected object in the dialog box which should be Unique for QTP to recognize the objects while the script executes.

6. The supported operations on the object can be retrieved by clicking on the operation tab. Operations such as “click” for a button, “Set” for a text box are retrieved from the “operations” tab as shown below:

QTP Object Spy

Test Your Automation Testing Skills By Taking Our Free Practice Tests On This Link

Share this post
[social_warfare]
Automation Testing Tutorial | Object Repository Basics & Object Identification
Automation Testing Tutorial | Multiple Object Repositories

Get industry recognized certification – Contact us

keyboard_arrow_up