Object Repository Merge Tool Settings In QTP

Specifying Default Resolution Settings in QTP 


You can configure how the Object Repository Merge Tool automatically deals with conflicting objects during the merge process or when performing an Update from Local Repository operation.

To specify default resolution settings:

  1. Select Tools ; Settings or click the Settings button  . The Settings dialog box opens.

  2. Click the Resolution tab.
  3. Select the appropriate radio buttons to specify the default resolution settings that the Object Repository Merge Tool applies when dealing with conflicting objects.

    • Take object description that is. Specifies how to resolve conflicts in which two objects have the same name, but their descriptions differ. You can specify that the target object repository takes the object description that is more generic or less generic.

      • More generic. Instructs the Object Repository Merge Tool to take the object that has fewer identifying properties than the object with which it conflicts, or uses regular expressions in its property values. This is the default setting.

      • Less generic. Instructs the Object Repository Merge Tool to take the object that has all the identifying properties of the object with which it conflicts, plus additional identifying properties.

    • Take object name from. Specifies how to resolve conflicts where two objects have the same or similar descriptions, but their names differ. You can select the source from which the target object repository takes the object name:

      • Primary repository file. The target object repository takes the object name from the object in the primary object repository. This is the default setting. (When updating a shared object repository from a local object repository, this option is for the Local object repository.)

      • Secondary repository file. The target object repository takes the object name from the object in the secondary object repository. (When updating a shared object repository from a local object repository, this option is for the Shared object repository.)

      • Same file as the object description. The target object repository takes the object name from the object in the same object repository from which it took the object description.
      • Note: When updating a shared object repository from a local object repository, the object repositories are referred to as the Local and Shared object repository.

  4. Click OK. The Object Repository Merge Tool will apply your selections when resolving conflicts between objects in all future object repository merges.
  5. Note: If you make any change to the resolution settings while a merged object repository is open, you are asked whether you want to merge the open files again with the new settings. Click Yes to merge the files again with the new settings, or click No to keep the existing merge created with the previous settings. If you click No, the new settings will apply only to future merges.
    You can specify the color in which object names are displayed in the target object repository according to their source, and whether they caused a conflict. This enables you to see the status of each object more easily.

    Note: The options in the Colors tab of the Settings dialog box apply equally to objects added from the local (primary) and shared (secondary) object repositories, when performing an Update from Local Repository operation.

    To specify color settings:

    1. Select Tools ; Settings or click the Settings button  . The Settings dialog box opens.
    2. For each item in the Colors tab, click the down arrow  next to the text box and select an identifying color from the Custom, Web, or System tabs.
    1. Click OK. Object names in the target object repository are displayed in the selected color according to your selections.

    The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.

0 comments:

Post a Comment