Differentiate the two Object Repository Types of QTP.

Showing Answers 1 - 15 of 15 Answers

phani

  • Aug 1st, 2005
 

1)per action 
 
2)shared

  Was this answer useful?  Yes

supriya

  • Aug 5th, 2005
 

Object repository is used to store all the objects in the application being tested.2 types of oject repositoy per action and shared. 
In shared repository only one centralised repository for all the tests. 
where as in per action.for each test a separate per action repostory is created.

  Was this answer useful?  Yes

sandeep.v

  • Oct 7th, 2005
 

In Qtp there are 2 object repositories, they are1.Shared Object Repository2.Per Action Mode,by default it's per action mode.we will use shared OR for calling a particular action,it's like calling external libraries.we will use per action for a particular action ie, for one action only.

sorry supriya for saying, the answer which u write is wrong, Shared repository is for perticular test: here if the  object repository is in shared mode, repository file will be only one all actions will use to this common shared file. what ever you learn  objects in any action ina test all will be stored in this file.

but , where as in per action mode: a seperate file will be created for each action and this can not be shared by another actions even they are in the same test.  

  Was this answer useful?  Yes

for shared repository it is not like external library calling: if u have an idea about winruner it works like just as the  concept  in winrunner per test guimap editor, which is default object guimap editor in Winruner.

  Was this answer useful?  Yes

Whatever you told about Winrunner is wrong.

The default Gui map file mode is "Global Gui map file" which actas same as Shared Object Repository in QTP.It's not Gui map file per test mode.

The "Gui map file per test mode " acts same as Per Action in QTP.

Sorry guys iam not pointing out your mistakes just clearing what is wrong and what is right.

Thanks ,

Vasavi.

  Was this answer useful?  Yes

montyjobs

  • Jun 18th, 2007
 

What is Object repository?
 Object Repository is used to store all the objects in the application being tested.

Types Object repository

    1. Per Action Repository
    2. Shared Repository

Difference between 2 Object repository
    1. Shared Repository: Repository which is used by more than one script/action.
    2. Per Action Repository: Every action has it own repository, no other action can access others repository, by default QTP will use Per Action Repository.

Thanks

Manish Bhatla

  Was this answer useful?  Yes

kiranpaul20

  • Jun 16th, 2010
 

There are two types of Object Repositories in QTP namely

1. Local Object Repository (.mtr)
2. Shared object Repository (.tsr)

Local Object Repository is for that particular action i.e you have learned objects into the repository for that test or action and you have the privilage to edit the object properties and values and this is stored in that test file. you cannot use this repository with other tests.

Shared Object Repository is a global repository which can be used by any test. Its like a centralized placed where all information about the objects are stored and can be associated to any test. The advantage of Shared Object Repository is that for multiple actions or test you can use the same Object Repository and this has to be associated to the current test or action so that the object identification takes place.

When you associate a shared object into your current test then all the objects will be read only and you cannot make any changes to the object properties and by enabling editing you can make changes to the repository but if you want to save the repository then you have to save as a new copy.

Kiran Paul

  Was this answer useful?  Yes

kousik_10

  • Jun 23rd, 2010
 

In QTP there are 2 object repositories:

1. Shared Object Repository: In shared object repository the details of all the actions are stored . It is only one file for all the action and what ever we learn fro a particular object in any action in a test ,all will be stored in this file. It can be shared among the same test or even in the different test.
2. Per Action Mode: In per action mode a object repository is created for the each action with the details of the objects used in that particular action and this can not be shared by another actions even they are in the same test.

By default it is per action mode.we will use shared OR for calling a particular action,it is like calling external libraries.  We will use per action for a particular action i.e., for one action only.

  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