This tutorial demonstartes Shared Object Repository in detail
Please be patient . Video will load in some time. If you still face issue viewing video click here
Summary:
Global or Shared Object Repository is preferable when application is dynamic and object description change frequently
Between Shared and local object repository , shared object repository is more commonly used in automation projects
But it has maintenance and administration overheads as compared to local object repository.
To create and use a shared object repository you need to perform three broad steps
1) Creating a Shared Object Repository
2) Associating a Shared Object Repository
3) Editing a Shared Object Repository
Lets look at them one at a time
1) Creating a Shared Object Repository
All repositories are local by default . To create a Shared Object Repository, in the Object Repository Dialog Box , Click File > Export Local Objects
Repository files have an extension .tsr .Give a suitable name say "guru99" and save
The Shared Repository File is now created
2)Associating a Shared Object Repository
Next step is to associate the repository to your test, which enables you to use it
To associate repository with a test, Click Resources > Associate Repository
You can select the Repository to associate with Actions available in your test.
Now you can now use this shared repository to develop your test
3) Editing a Shared Object Repository
You can use the Object Repository Manager to Edit a Share Repository.
Select Resources > Object Repository Manager .Open the Object Repository we created "guru99"
By Default , Repository is opened in Read-only mode. To enable editing click File > Enable Editing
Once editing is enabled you can all the operations like cut , copy , pate , rename objects etc that you can also do in Object Repository
Using Object Repository Manager is you can compare two Object Repositories .QTP will give you a static's of what's unique and common in both the repositories
You can use the Object repository merge tool to merge two repositories into one