How to use a Shared Object repository in QTP 9.2

Object Repository manager in QTP is used to manage a Shared Object repository.

Resources – Object Repository Manager – Add Objects

What is a Shared Object Repository?


Shared Object Repository in QTP is a centralized place where all the object information is stored and will be stored as a .tsr file (Test Shared Repository). The extension of a shared object repository is a .tsr while working in a shared environment with multiple quick test licenses it is always a better practice to use a shared object repository.


How to create a shared object repository?


Open a new test in QTP.

Navigate to Resources, Object Repository Manager. Object Repository Manager Window opens up.



Now start learning objects from the application under test into the repository by clicking the Add Objects Button.



Now save the repository as a .tsr file in to the desired location and folder from where you can access.

Now your shared object repository is ready to be used for your test.

Some quick tips:

1. Add Objects using shared object repository manager to create a .tsr file.

2. Associate the .tsr file to the current test. Note: we can start using a shared object repository only after we associate the object repository to the test.

3. Object Repository manager is used to create/edit a .tsr file.

4. Associate repository is used to associate a .tsr file with the current test.

0 comments:

Post a Comment

/* Tynt Insight tracker ----------------------------------------------- */