What are the advantages and disadvantages of shared object repository and per test object repository in QTP

Showing Answers 1 - 9 of 9 Answers

swanand_rk

  • Jan 30th, 2007
 

Advantages of Shared Object Repository -

(1) uses the existing information and does not add the object to the object repository if you record operations on an object that already exists in the shared object repository

(2) easily maintain your tests or components when an object in your application changes

(3) manage all the objects for a suite of tests or components in one central location

(4) Renaming the object name is time consuming. As If you rename objects in a shared object repository in one test or component and save the changes, when you open another test or component using the same shared object repository, that test or component updates the object name in all steps of the test or component. This process may take a few moments. If you save the changes to the second test or component, the renamed steps are saved.

Disadvantages of Shared Object Repository -

(1) If you add an existing shared object repository file from the file system to a Quality Center project, it will be a copy of the one used by tests not in the Quality Center project.

(2) You must be connected to Quality Center to work with a shared object repository in the file system.

(3) Once you save the file to the project, changes made to the Quality Center repository file will not affect the file in the file system and vice versa.

Advantages of per-test Object Repository -
(1) As you record operations on objects in your application, QuickTest automatically stores the information about those objects in the appropriate action object repository.

(2) When you save your test, all of the action object repositories are automatically saved with the test as part of each action within the test. The action object repository is not accessible as a separate file (as is the shared object repository).

Disadvantages of per-test Object Repository -
(1) Modifying the test object properties, values, or names in one object repository does not affect the information stored for the same test object in another object repository or in other tests - Time Consuming

(2) If you add objects to one of the split actions, the new objects are added only to the corresponding action object repository.

  Was this answer useful?  Yes

Haresh Pakki

  • Jun 17th, 2007
 

1. QTP cannot call Actions that use a shared Object
Repository.

2. QTP can call Actions that use a per Action Object
Repository, but it will be read-only.

3. QTP can call copy Actions that use a per Action Object
Repository.

4. QTP cannot copy Actions that use a shared Object
Repository.

  Was this answer useful?  Yes

qptopm

  • Apr 20th, 2016
 

Adv:Manage all the objects for a suite of tests or components in one central location.
Simple and easy to identify the objects.

Disadv: It consumes too much of memory when it is loaded and it will increase the execution time.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions