Documente Academic
Documente Profesional
Documente Cultură
2008, Cognizant Technology Solutions. All Rights Reserved. The information contained herein is subject to change without notice.
Testing Services
Objectives
After completing this chapter, you will be able to:
Understanding Object Repository Types. Describe local versus shared object repositories. Use of the Object Repository Manager.
Object Repository
You can also transfer local objects to a shared object repository, if required. This reduces maintenance and enhances the reusability of your tests because it enables you to maintain the objects in a single, shared location instead of multiple locations. If an object with the same name is located in both the local object repository and in a shared object repository associated with the same action, the action uses the local object definition. If an object with the same name is located in more than one shared object repository associated with the same action, the object definition is used from the first occurrence of the object, according to the order in which the shared object repositories are associated with the action. Local objects are saved locally with the action, and can be accessed only from that action. When using a shared object repository, you can use the same object repository for multiple actions. You can also use multiple object repositories for each action.
Object Repository
When we open and work with an existing test, it always uses the object repositories that are specified in the Associated Repositories tab of the Action Properties dialog box or in the Associate Repositories dialog box. Shared object repositories are read-only when accessed from tests; you edit them using the Object Repository Manager. Note for users of previous QuickTest versions: When you open a test that was created using a version of QuickTest earlier than version 9.1, you are asked whether you want to convert it or view it in read-only format. Whether you choose to open it in read-only format or convert it, the object repositories are associated to the test as follows: If the test previously used per-action repositories, the objects in each per-action repository are transferred to the local object repository of each action in the test. If the test previously used a shared object repository, the same shared object repository is associated with each of the actions in the test, and the local object repository is empty
You have only one, or very few, tests that correspond to a given application, interface, or set of objects. You do not expect to frequently modify test object properties. You generally create single-action tests.
Object Conflicts
Similar Description Conflict Two objects which have the same name and the same object hierarchy, but which have slightly different descriptions. In this conflict type, one of the objects always has a subset of the properties set of the other object. By default, the conflict resolution settings for conflicts of this type are configured so that the target object repository takes the object that has fewer identifying properties than the object with which it conflicts. Same Name Different Description Conflict Two objects which have the same name and the same object hierarchy, but differ somehow in their description (for example, they have different properties, or the same property with different values). By default, the conflict resolution settings for conflicts of this type are configured so that the target object repository takes the object from both files. The object that is added from the secondary file is renamed by adding an incremental numeric suffix to the name
Object Conflicts
Same Description Different Name Conflict Two objects which have identical descriptions, have the same object hierarchy, but differ in their object names. By default, the conflict resolution settings for conflicts of this type are configured so that the target object repository takes the object name from the primary source file.
Thank you
2008, Cognizant Technology Solutions. All Rights Reserved. The information contained herein is subject to change without notice.
Testing Services