Sunday, November 3, 2013

Object Spy in UFT 11.5

It is a feature provided in UFT 11.5 which is used to display properties and values of an application object.Using this we can find the run time or test object properties and methods of any object on an open application.

Navigation:

1.Tools---->Object Spy from menu bar
2.Object spy icon from tool bar


You can choose any of the way if you click on "Object Spy" you will get the below "Object Spy" Dialog box
Click on hand icon and then click on required object you will get all the properties and values of that object.

The Object Spy dialog box contains the following options:



we use this pointer to click or highlight the object whose properties we want view.when you click on this pointer then after according to your mouse movements and pointing the properties and values of objects dynamically changes.when you click on specific object then corresponding properties and methods and hierarchy are displayed in Object Spy dialog box.

Once we capture an Object with Object spy the next three buttons will get activated as below



2.If we click on "Highlight in Application" then the object which we already captured through object repository is highlighted in application as shown above it will be useful if we have large number of object in application.

3."Add Object To Repository" this button enables to add the selected object to "Object Repository".

4.Object Hierarchy:



here it will displays the hierarchy of objects that are related to the object we selected as shown below


" Properties" tab contains properties and values of a selected object.

I hope these options will enough to work on "Object Spy" in UFT 11.5.If there is any doubt please let me know.

Conclusion:  Object Spy is used in order to identify an object' in an application and use their properties to access that object through script so that we can achieve the functionality.

No comments:

Post a Comment

Admin will respond you with in next 24 hours