Object Repository


*******************************************************************************
Object repository in QTP: 
*******************************************************************************
     Object repository is the heart of QTP, if you don’t understand it properly than you will face lots of problems in developing and testing of your application. 
*******************************************************************************
 Test objects can be saved in two types of object repository


Local object repository (.bdb)
Shared object repository(.tsr)

*******************************************************************************
Local object repository:
*******************************************************************************
      A local object repository stores objects in a file that is associated with one specific action, so that only that action can access the stored objects 

*******************************************************************************

Shared object repository:
*******************************************************************************
     A shared object repository stores test objects in a file that can be accessed by multiple tests. - When you want to create test (New project) you have two ways to store the objects in your test. -

*******************************************************************************

Important Points:
  • Most efficient way to save objects is in shared object repository
  • We can use the same shared object repository for multiple actions
  • If an object with the same name is located in both the local object repository and in a shared object repository linked with the same action, the action uses the local object repository first.. 
  • We can copy objects from shared repository to local repository
  • We can view all objects of QTP (local and shared) and you can also modify its property according to your requirements of application


No comments:

Post a Comment