Professional Documents
Culture Documents
Session-7: Agenda
How QTP learns objects while recording How QTP recognizes the objects during Run time What is an Object Repository Types of Object Repository Local Object Repository Object Repository Manager Object Spy Class, Properties and Methods Q & A Assignment
Object Spy
Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected objects hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
10
11
Properties: A named attribute of an object. Properties define object characteristics such as size, color, and screen location, or the state of an object, such as enabled or disabled.
Methods: Methods are used to perform action on an object and can also be used to retrieve object property values Example
Click
CheckProperty
12
Q&A
13