Friday, November 18, 2011

HP QTP Object Repositories

Object Repositories
QuickTest can store the test objects it learns in two types of object repository files: shared and local.
A shared object repository contains test objects that can be used in multiple actions. This versatility makes it the preferred repository type for storing and maintaining test objects. By associating a shared object repository with an action, you make the test objects in that repository available for use in the action. Any maintenance you perform on an object in a shared object repository is reflected in any step using that object.
A local object repository stores test objects that can be used in one specific action. The objects in this type of repository cannot be used in any other action. Local object repositories are useful for backing up your test objects, or for learning one or several objects.
When you create an object repository, try to include only the objects you need for testing purposes. This keeps the object repository relatively small and helps makes maintenance and object selection easier. Also, make sure that you provide logical names so that others can easily choose the correct objects when creating or modifying tests.
During a run session, QuickTest references the test objects stored in the associated object repositories in order to perform operations on the corresponding objects in your application

No comments:

Post a Comment