| || |
Suggestions regarding using multiple repositories
In QTP 9.1, the repository association for each Action is
a) Local Repository
b) First associated Global Repository
c) Second associated Global Repository and so on...
So objects are always searched in the local repository first and if not found in local repository then objects are searched in associated global repositories.
So my question is, should we use 'only one global object repository' or its good to have more than one global object repository.
And what are your views on having 'local repositories only' as long as we are not re-recording the same objects time and again. As we can write reusable actions for the tasks/functionality which are repeatable, so we can avoid re-recording of same objects to a large extent.
I am new to QTP and hence inclined to using Local Repositories as the maintenance is easier. And since we are not using same object in more than one action, so i like local repository only.
Since you people have good experience working on QTP, so your suggestions can be of great help.
Thanks in advance.
Re: Suggestions regarding using multiple repositories
First this I noticed in reading your post is that you record tests. You need to move away from recording and develop your tests.
I dont use a Local Repository at all I use a mix of OR and Descriptive Programing(DP). For my OR I map the objects on a page in the OR Manager I then develop the script to match the OR where I can I use DP. My application is very dynamic in how objects are named so full DP is not possible.
Re: Suggestions regarding using multiple repositor
Thanks a lot IanF.
No, i dont record my scripts. But when i build my repository, i spy each object and add it to the local repository one by one. And hence i can manage these objects locally very well.
I will start using DP after a while, or when the project demands it. Descriptive programming is really a robust and low maintenance thing, but its difficult at times for somebody else to understand your code specially when the guy who have to maintain it is not too good.