About Merging Shared Object Repositories In QTP

About Merging Shared Object Repositories In QTP


When you have multiple shared object repositories that contain test objects from the same area of your application, it may be useful to combine those test objects into a single object repository for easier maintenance. You could do this by moving or copying objects in the Object Repository Manager. However, if you have test objects in different object repositories that represent the same object in your application, and the descriptions for these objects in the different object repositories are not identical, it may be difficult to recognize and handle these conflicts.


The Object Repository Merge Tool helps you to solve the above problem by merging two selected object repositories for you and providing options for addressing test objects with conflicting descriptions. Using this tool, you merge two shared object repositories (called the primary object repository and the secondary object repository), into a new third object repository, called the target object repository. Objects in the primary and secondary object repositories are automatically compared and then added to the target object repository according to preconfigurable rules that define the defaults for how conflicts between objects are resolved.


After the merge process, the Object Repository Merge Tool provides a graphic presentation of the original objects in the primary and secondary object 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 default resolution for each conflict, or modify conflict resolutions individually, according to your requirements.

Notes:





  • The Object Repository Merge Tool does not merge checkpoint or output objects from the primary and secondary object repositories into the target shared object repository. You can copy or manually move these objects to your target object repository after you complete the merge process, using the Object Repository Manager.





  • When the Object Repository Merge Tool is open, you cannot work with the Object Repository Manager or Object Repository Comparison Tool. 



  • You can change the view presented by the Object Repository Merge Tool according to your working preferences.

    • Drag the edges of the panes to resize them in the Object Repository Merge Tool window.

    • Select Primary Repository, Secondary Repository, Target Repository Object Properties, or Resolution Options from the View menu to hide or show these panes in the Object Repository Merge Tool.

    • Select View > Set as Default Layout to set your current view as the default view, which displays each time you open the Object Repository Merge Tool. You can select View > Restore Default Layout to restore the view to the default settings after you make changes.
    Target Repository Pane

    The target object repository pane displays a hierarchy of the objects, as well as their respective properties and values, that were merged from the primary and secondary object repositories. In the column to the left of the object hierarchy, the pane displays the source file of each object (1 is displayed for the primary file and 2 for the secondary file), and an icon representing the type of conflict, if any.

    When you save the target object repository, the file path is displayed above the object hierarchy.

    Note: To make it easier to see the status of an object at a glance, the text colors of the object names in the target object repository can be set according to their source and whether they caused a conflict.

    The target object repository pane provides the following functionality:

    • When you select an object in the target object repository, the corresponding object in the primary and/or secondary source file hierarchy is located and indicated by a check mark.

    • When you select an object in the target object repository, its properties and values are displayed in the Object Properties - Target File area at the bottom of the target object repository pane (View > Target Repository Object Properties).

    • If the merge results in a conflict, an icon is displayed to the left of the conflicting object in the target object repository. You can see a tooltip description of the conflict type by positioning your pointer over the icon.

    • When you right-click an object, a context-sensitive menu opens. You can expand an option or collapse the entire hierarchy in the target object repository, or, when applicable, you can change the conflict resolution method and result.

    • You can expand or collapse the hierarchy of the node by double-clicking a node. You can also expand or collapse the entire hierarchy in the target object repository by choosing Collapse All or Expand All from the View menu.

    • You can jump directly to the next or previous conflict in the target object repository hierarchy by choosing Next Conflict or Previous Conflict from the Navigate menu, or by clicking the Next Conflict or Previous Conflict buttons  in the toolbar or Resolution Options pane.

    • You can locate one or more objects in the target object repository by using the Find dialog box. For more information, see Finding Specific Objects.

    • You can show or hide the target object repository object properties by choosing View > Target Repository Object Properties.

    • 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