-
Junior Member
how to minimize the storage of objects in Object Repository ?
Suppose
Brower1
has page1, page2
page1 has webedits,webbuttons,weblists...etc
page 2 has similar objects of page with same names.
Is that encoraged to add both page objects to OR then go for scripting?
or
Is there anyway where we cann add page1 objects then uitlize the same objects for page2 also.....? if so how can we do that?
if there is any way please reply me...very much needed..
-
Contributing Member
Re: how to minimize the storage of objects in Object Repository ?
Well I think,
For every object present in OR must have unique description in order to perform some operation during Play Back. If two object with similar description exists in OR then during playback QTP unable to identify that on which object it should actually perform operation.
In your case if two pages have same Object Description present in OR then it will simply given run time error. Therefore you have to populate both Page Objects in OR with different description so that during run time QTP can identify an object.
Hope it helps.
Please correct if I am wrong
Thanks
CPS
-
Moderator
Re: how to minimize the storage of objects in Object Repository ?
Even though the objects have the same description but they are under different parents, so there should be no problem. Generally, you face such issues if you have to merge ORs and there are some pre-defined rules for objects having same properties to be merged.
-
Junior Member
Re: how to minimize the storage of objects in Object Repository ?
Hi Anshoo and Sycho,
You have not got my pblm.
If that case exist what i have asked...?
Can we go for regular expresionns on page .. so that the burden of adding the other page objects would be reduced...
if that regular expressions works then how to assign that ?
-
Moderator
Re: how to minimize the storage of objects in Object Repository ?
That's one of the limitations of the keyword view. If you have 2 objects on each page, let's say a Submit button and a Cancel button and there are 20 pages, you will have to add 40 (2x20) of those objects to your OR because each object has a different parent. This is a terrible approach towards programming. If you use DP, then you can have 2 object descriptions which can be called again and again, without defining any more objects.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules