Updating a Shared Object Repository from Local Object Repositories In QTP

Updating a Shared Object Repository from Local Object Repositories In QTP


You can update a shared object repository by merging local object repositories associated with one or more components (via the application area) into the shared object repository. The objects that are merged from the local object repositories are then available to any components that use that shared object repository.


In the merge process, the objects in the local object repository for the selected component are moved to the target shared object repository. The component then uses the objects from the updated shared object repository.

You can view or change how conflicting objects are dealt with during the update process in the Settings dialog box. For more information, see Defining Default Settings.

If you choose to add local object repositories for more than one component, QuickTest performs multiple merges, merging each component's local object repository with the target object repository one at a time, for all the components in the list. You can view and modify the results of each merge if necessary.

Notes:



  • The Object Repository Merge Tool does not merge checkpoint or output objects from a local object repository into the target shared object repository. You can export checkpoint or output objects from a local object repository to a shared object repository and then manually move the checkpoint and output objects from the exported object repository to your target object repository after you complete the merge process, using the Object Repository Manager.



  • You can merge local object repositories only from components whose application areas are associated with the shared object repository you are updating.


  • To update a shared object repository from a local object repository:

    1. Select Resources > Object Repository Manager. The Object Repository Manager opens.
    2. Note: For more information on the Object Repository Manager, see Managing Object Repositories.

    3. In the Object Repository Manager, select File > Open or click the Open button  . The Open Shared Object Repository dialog box opens.

    4. In the sidebar, select the location of the object repository file, for example, File System or Quality Center Resources. Browse to and select the .tsr file that contains the shared object repository you want to update, clear the Open in read-only mode check box, and click Open. The file opens with the objects and properties displayed in editable format.
    5. Tip: If you opened the object repository in read-only mode, select File > Enable Editing or click the Enable Editing button  in the Object Repository Manager toolbar. The object repository file is made editable.

    6. Select Tools > Update from Local Repository. The Update from Local Repository dialog box opens. 
    7. Make sure you are connected to your Quality Center project. Click the down arrow  next to the Add Tests button  , and select Browse for Component. The Open QuickTest Component from Quality Center Project dialog box opens.
    8. Browse to the component whose local object repository you want to merge into the shared object repository.
      Note: You can only add a component whose application area is associated with the shared object repository you are updating and whose local object repository contains objects.

    9. Repeat step 5 to add additional components if required.
    10. Note: The local object repositories associated with all the components are included in the merge. If you want to remove a component from the merge, select it in the list and click Delete  .

    11. Click Update All. QuickTest automatically merges the first component local object repository into the shared object repository according to the configured settings, and displays the results in the Statistics dialog box on top of the Object Repository Merge Tool window.
    12. Note: Before each merge, QuickTest checks whether the local object repository is in use by another user. If so, the local object repository is locked and the objects for the selected component cannot be moved to the target shared object repository. A warning message is displayed. The merge can be performed when the local object repository is no longer in use by the other user.

    13. Review the merge statistics, as described in Viewing Merge Statistics, and click Close.
    14. The Object Repository - Merge Tool window for a local object repository merge displays the local object repository as the primary object repository, and the shared object repository as the target object repository.
        At the left of each object in the target object hierarchy is an icon that indicates the source of the objects:
         indicates that the object was added from the local object repository.
        indicates that the object already existed in the shared object repository.
        Note: If you specified more than one component in the Update from Local Repository dialog box, QuickTest performs multiple merges, merging each component's local object repository with the target object repository one at a time. The Statistics dialog box and the Object Repository Merge Tool - Multiple Merge window displayed after this step show the merge results of the first merge (the local object repository of the first component being merged into the shared object repository). QuickTest enables you to view, and modify if necessary, the results of each merge in sequence. The number of each merge set in a multiple merge is displayed in the title bar, for example, [Set 2 of 3].

      1. For each object merged into the shared object repository, you can accept the automatic merge or use the Resolution Options pane to:

        • Keep a specific object from the shared object repository and delete the conflicting object from the local object repository.

        • Keep a specific object from the local object repository and delete the conflicting object from the shared object repository.

        • Keep conflicting objects from both the shared object repository and the local object repository.

        • Exclude a specific local repository object from the merge process so that it is not included in the shared object repository. Select the object in the Shared Object Repository pane and click Ignore Object at the bottom of the Resolution Options pane. The object is removed from the shared object repository and grayed in the local object repository tree. It remains in the component's local object repository when the merge is complete.
        • Notes:

          • The Ignore Object button is only visible in the Merge Tool window for a local object repository merge, and is only enabled when an object in the local object repository is selected.

          • The Ignore Object operation cannot be reversed. To include the object again in the merge process, you must repeat the merge by clicking Revert to Original Merged Files  in the toolbar.
          • For more information, see Resolving Object Conflicts.

      2. If you are performing multiple merges, click the Save and Merge Next button  in the Object Repository Merge Tool toolbar to perform the next merge (the local object repository of the next component being merged into the shared object repository).

      3. Click Yes to save your changes between merges. If you click No, the current merge (objects merged from the last component) will not be saved.

      4. Repeat steps 8 to 11 to complete the multiple merges.

      5. Select File ; Exit, then click Yes to save the updated object repository.
      6. The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.

    0 comments:

    Post a Comment