What is Object Repository in QTP and How it works ?

It is the place where the object information will store. In this you can see all objects properties and you can add, edit, modify and delete properties of the objects.
The objects and properties stored in object repository are called as Test Objects. these Test Objects are used for identifying the Run Time Objects (Object in the Application)

Object Repository Dialog box
  

Adding objects 
In the Object Repository window, choose Object--> Add Objects to Local. Click the object you want to add to your object repository. 
If the object is associated to any other object then you will this dialog box.

Selected object only: - Adds to the object repository the previously selected object's properties and values, without its descendant objects.

Default object types: - Adds to the object repository the previously selected object's properties and values, with the properties and values of its descendant objects according to the object types specified by the default filter. You can see which objects are in the default filter by clicking the Select button and then clicking the Default button.

All object types: - Adds to the object repository the previously selected object's properties and values, together with the properties and values of all of its descendant objects.

Selected object types: - Adds to the object repository the previously selected object's properties and values, as well as the properties and values of its descendant objects according to the object types and classes you specify in the object filter. You specify the objects and classes in the filter by clicking the Select button and selecting the required items in the Select Object Types dialog box.
Click on the select button to select the objects. After clicking on select this dialog box will open.
Select the filter type and add the objects to the repository.

Modifying properties of the objects
Select the object which you want to modify properties and go to description properties there select the property value. Automatically the property value will be edit; you can change that value to any value.

Changing name of the object
Select object in repository, right click-->Rename and change the name.

Deleting objects from repository
Select object in repository, right click-->Delete.

Highlighting Object
Select object in repository View --> Highlight in Application. This will highlight object in application. 

Locate in Repository
Go to View --> Locate in Repository and select object in application if object is there in repository then that object will be selected.



To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email