QTP Shared Object Repository

What is the advantage of using shared object repository in QTP?

Questions by sdasgarali

Showing Answers 1 - 39 of 39 Answers

Shereen1

  • Apr 10th, 2010
 

When you record a new test, QTP automatically creates a new Local Object Repository for that test or action and stores the information it finds about any object in it's corresponding Object Repository every time as a different test object, for that specific test. But if you export these objects to the Shared Object Repository from the Local Object Repository then you can specify and associate one or more Shared Object Repositories with each action or test and multiple tests can use them, or create a new Shared Object Repository and associate it with an action or test.

To export Local Object Repository to Shared Object Repository:
In the Object Repository window choose the action or objects you want to export.
Select File -> Export Local Objects. Select the location where you want to save the file, then click Save.

You can also update the update the Shared Object Repository with the Local Object Repository.

ramesh2014

  • Apr 13th, 2010
 

Real advantage of Shared Object Repository would be that:

a)  If mulitple actions or test requires of same object then instead of creating Local Object Repository for each and every individual actions, we go for Shared Object Repository where we try to keep single Object Repository for multiple actions.

b) If any objects to be changed for multiple actions then by changing the object properties under Shared Object Repository would effect for multiple actions.

c) You can merge even two shared repository to utilize the same in third.

d) Group of users can update the same object repository which is an external file and so on...

Kumar.B

  • May 12th, 2010
 

Advantages of Share Repositry:
1) Re-usablility : Same Repositry can be used with any number of Actions/Test Scripts
2) Easy to maintain and update : If yuo are using Share repositry and any one of the Object Property in your application has changed then you need to update only once in Share repositry which will reflect in all the your scripts/actions.
3) Reduced size : Instead of having "x" size repositry with each script you can have a sigle file which is assosiated with all your scripts. Overall size of your scritps will be reduced.

The above just list which I know :-)

sandhya

  • Sep 22nd, 2011
 

can u tell me how the shared object repository will be in real time. who will add objects into shared object repository? can a normal automation test engineer can add objects into shared object repository?

  Was this answer useful?  Yes

ARUNA

  • Feb 23rd, 2012
 

Offcourse automation engineer will only add the Object to OR ..............shared OR means u have all the objects of the Entire Application in one place every one in the team updates to the same OR ..........use the same or for execution

  Was this answer useful?  Yes

Advantage of Shared Object Repositories -

- Can be shared among multiple Actions.
- Can associate multiple Shared OR.
- It is viewed using OR Manager
- User needs to explicitly add object details to Shared OR.
- Extension of Shared OR is .tsr
- Reduces redundancy & saves OR maintenance effort in big projects

Cheers,
Abhay

  Was this answer useful?  Yes

The advantage of using shared object repository is :

Easy To Update : Suppose we have changed the name/property of any object, then we dont have to change the property/name of the object in every script using it (as is the case with local object repository), rather changing it once in the shared object repository will get reflected in every script using it.

Uses Less Memory : It rules out use of multiple copies of the same object by different actions which saves a lot of memory.

Reusable : The same object can be used by many number of scripts.

  Was this answer useful?  Yes

lakshmi

  • Apr 10th, 2012
 

Shared Object Repository is preferable while dealing with dynamic objects which are called in multiple tests. The extension is ".tsr"

  Was this answer useful?  Yes

balagp84

  • Aug 6th, 2012
 

Hi Sandhya,

In real time, Shared Object Repository is in the name of ".TSR" in your preferred location in the local drives (but usually keep it in the same folder where scripts available).

  Was this answer useful?  Yes

kranthi

  • Aug 15th, 2012
 

we can create repositories in qtp two types

1.repository in descriptive programming(user define repositories)

2.repository in record and playback(system define repositories
in DP we can convert which names developer given to objects that names convert in to tester own keywords like shown below
for ex:developer given name for username field like USERNAME

set uname=description.create
uname("name").value="USERNAME"

we can uname instead of "USERNAME" any where in project
this keywords write in to notepad and save as .vbs in repository folders, second method is available in QTP

  Was this answer useful?  Yes

Arjun

  • Mar 21st, 2013
 

But Shared repositories reduces the performance of the execution

  Was this answer useful?  Yes

radhika

  • Sep 12th, 2013
 

Shared Object Repository is Global Repository you can use it for any multiple test. If you made any changes like property name in the Repository it will automatically changes in all tests.

  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