Monday, November 22, 2010

Managing Object Repositories in QTP


I had already explained about Object Repository in QTP. And, I already explained about different types of Object Repositories also.


In this post I am going to explain about managing Object Repository (OR).

QTP is having separate window named as "Object Repository Manager" for managing various object repositories.

You can open this window from the Menu "Resources->Object Repository Manager..."

The Object Repository Manager enables you to manage all of the shared object repositories used in your organization from a single, central location.
It will be used for adding and defining objects, modifying objects and their descriptions, parameterizing repositories to make them more generic, maintaining and organizing repositories, merging repositories, and importing and exporting repositories in XML format.

The Object Repository Manager window will look like below one.





You can create new shared repository from this window and can store it as .tsr file.

While adding objects, you will provided with two options. Either you can choose to add only the selected Object or you can choose to add the selected object and its descendants.



You can store the object repositories  either in file system or in Quality Center project.

The Object Repository(OR) Manager enables you to open multiple shared object repositories and modify them as needed.


This Object Repository Manager provides the options such as  "Add objects", "Highlight in Application",  and "Locate in Repository"  for the Shared object repository. It is similar to the local object repository. I will be explaining them in separate post.

By default this OR Manager will be in readonly mode. i-e you can not edit anything in this mode.

We need to choose File>Enable Editing for making it editable.

Update from Local Repository option in the OR Manager (Tools > Update from Local Repository) can be used for merging objects from the local object repository of one or more actions to a shared object repository.


And, it provides Object Repository Merge Tool for merging two shared object repositories.

At the end of  the merge process, the Object Repository Merge Tool provides a graphic presentation of the original objects in both repositories, which remain unchanged, as well as the objects in the merged target object repository.

Objects that had conflicts are highlighted. The conflict of each object that you select in the target object repository is described in detail. The Object Repository Merge Tool provides specific options that enable you to keep the suggested resolution for each conflict, or modify each conflict resolution individually, according to your requirements.

And note that While the Object Repository Merge Tool is open, you cannot work with the Object Repository Manager.

Apart from this OR Manager, QTP is having "Associate Repositories.." option for  enabling you to associate one or more shared object repositories with one or more actions in a test.


More Articles...
You can bookmark this blog for further reading, or you can subscribe to our blog feed.

1 comment:

Netherlands IT Career said...

You can also add a topic on how to update OR during a run time error when an object in application changes by running it in maintenance mode

Search This Blog