What is
Object Spy in QTP, How should it Use for Quick Test Professional
What is
Object Spy in QTP? How to Use it ?
Object Spy is
helpful in deciding the execute and test time object property and
method of that application which is under test. Object Spy can be
directly access from the Object Repository Dialog box or the toolbar.
It play very
important role during the DP mean Descriptive programming.
How we can use
the Object Spy in QTP?
- Got to The Tools Option → Object Spy
- Object Spy named window will open.
- Now application need to open to confirm the related object properties or functions which you want to check
- Now required to click on “Pointer Image” of the window of object Spy.
- Now select on required object which functions or properties you want to see.
Use of Object
Spy:
- Using Object Spy we can check different -2 object properties of any choose object.
- Let us learn it with a easy example, there is a file name of image file fig. “logo.gif”.
- You can also see the link of the pic i.e. www.yahoo.com/imagefolder/logo.gif by this way you can check or see all types of properties of any selected object.
- You also can different types of function with the help of Object Spy i.e. Click(), capturebitmap(), drop() and drag () etc.
- Basic structure can also be understand which QTP recognized the individual object
Example of
Object Spy:
Browser(“Yahoo”).Page(“Yahoo”).Image(“Yahoo”).Click
In the sentence
provided above we can check on object function named “Click” that
we observed in object spy.
Now I am clear
about you how QTP can understand the object.
What is Object Spy in QTP |
No comments:
Post a Comment