Search This Blog

Tuesday, September 8, 2009

qtp: object spy in QTP

Object spy in QTP

Object spy is the very much important tool in qtp. With the use of Object spy we can learn basic structure of test object. The main advantage of object spy is that we can see object structure of specific object in tree view. So that makes test object more understandable and easier.

In addition to this we can view the run-time and test object properties and methods of any object in open application.

Now let’s understand and use object spy practically.

How to use Object spy in qtp?

1. Go to Tools->Object spy.
2. One window named Object Spy will open
3. Then open the application whose object properties or methods you want to see.
4. Then just click on “Pointer image” of object spy window.
5. Click on Object whose object properties or methods you want to see.



Above figure is window of object spy. I have used “object Spy” tool on “google.com” logo “Google’. QTP recognize this logo 'Google' as image. Using Object spy you can view two things one is properties of specific object and second is methods applicable for that object.

Use of Object spy:

- You can view different object properties of selected objects.
- Let’s see some example, you can know file name of image see in fig. �"

No comments: