Merging Two Object Repositories In QTP

Merging Two Object Repositories In QTP


Using the Object Repository Merge Tool, you can merge two source object repositories to create a new shared object repository. Objects in the object repositories are automatically compared and added to the new object repository according to configurable rules that define how conflicts between objects are resolved. The original source files are not changed.


Note: An object repository that is currently open by another user is locked. If you try to merge the locked file, a warning message displays, but you can still perform the merge because the merge process does not modify the source files. Note that changes made to the locked file by the other user may not be included in the merged object repository.


To merge two object repositories:

  1. In the Object Repository Manager, select Tools > Object Repository Merge Tool. The New Merge dialog box opens on top of the Object Repository - Merge Tool window.
    1. Tips:

      • If the Object Repository - Merge Tool window is already open, you can select File > New Merge or click the New Merge button  to open the New Merge dialog box.

      • If you want to change the configured settings before merging the object repositories, click Cancel to close the New Merge dialog box, change the settings as described in Defining Default Settings, and then perform the merge.

    2. In the Primary file and Secondary file boxes, enter (or browse to) the .tsr object repositories that you want to merge into a single object repository. You can click the down arrow  next to each box to view and select recently used files.
    3. Notes:

      • It is recommended that you select as your primary object repository the object repository in which you have invested the most effort, meaning the object repository with more objects, object properties, and values.

      • A warning icon  is displayed next to the relevant text box if you enter the name of a file without a .tsr suffix, a file with an incorrect path, or a file that does not exist. You can position your pointer over the icon to see a tooltip explanation of the error. Enter or select an existing .tsr file with the correct path.

      • If you want to merge an object repository that was created using a version of QuickTest earlier than version 9.0, you must first open and save it in the Object Repository Manager to update it to the new format.

      • If you are connected to Quality Center, you can enter (or browse to) object repositories from Quality Center as well as from the file system.

    4. Click OK. The Object Repository Merge Tool automatically merges the selected object repositories into a new target object repository according to the configured resolution settings, and displays the results in the Statistics dialog box on top of the Object Repository - Merge Tool window.

    5. Review the merge statistics, as described in Viewing Merge Statistics, and click Close.
    6. In the Object Repository - Merge Tool window, you can:

      • Modify any conflict resolutions between objects from the source object repositories, if necessary, as described in Resolving Object Conflicts.

      • Filter the objects in the target object repository, as described in Filtering the Target Repository Pane.

      • Save the target object repository to the file system or to a Quality Center project, as described in Saving the Target Object Repository.
      • The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.

Post a Comment

Previous Post Next Post