Use Local or Shared Object Repositories in QTP? How to Decide?

Share This Post -

Deciding Whether to Use Local or Shared Object Repositories in QTP

To choose where to save objects, you need to understand the differences between local and shared object repositories.

In general, the local object repository is easiest to use when you are creating simple record and run tests, especially under the following conditions:

  • 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.

Conversely, the shared object repository is generally the preferred option when:

  • You are creating tests using keyword-driven methodologies (not using record).

  • You have several tests that test elements of the same application, interface, or set of objects.

  • You expect the object properties in your application to change from time to time and/or you regularly need to update or modify test object properties.

  • You often work with multi-action tests and regularly use the Insert Copy of Action and Insert Call to Action options.