Friday, 9 August 2013

What is Object Spy, How to Use It

QTP Object Spy helps to view the supported run & test time properties and method of any object in an open application. Click the pointing hand to select the object in the application. Object details are displayed in the Object Spy. These details includes the test object’s hierarchy tree, its identification properties and values, and the operations associated with the object.
Go to Tools -> Object Spy or click the Object Spy button on Tool bar. Object Spy components are as follows -
Object hierarchy tree
– Displays the hierarchy of objects that are related to the object you selected.

 Run-time Object Properties / Run-time Object Methods
– Displays the run-time (native) object properties or methods associated with the object selected in the Object Spy’s object hierarchy tree.

Test Object Properties / Test Object Methods
– Displays the test object properties or methods associated with the object selected in the Object Spy’s object hierarchy tree.
– Properties Tab
– Displays the properties and values of the selected object.
– Properties. Displays the property names for the object that is currently selected in the Object Spy’s object hierarchy tree.
– Values. Displays the property values for the object that is currently selected in the Object Spy’s object hierarchy tree.

Methods Tab
– Displays the methods associated with the selected object.
– Methods. Displays the run-time object or test object methods and their corresponding syntax for the object that is currently selected in the Object Spy’s object hierarchy tree.
– Description. Describes the method.

No comments:

Post a Comment