Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on how to minimize the storage of objects in Object Repository ? within the QTP forums, part of the Software Testing category; 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 ...
|
|||||||
|
|||
|
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.. |
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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.
|
|
|||
|
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 ? |
|
|||
|
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.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| abt object repository,virtual objects | psuresh1982 | C and C++ | 5 | 04-20-2009 08:28 AM |
| I cannot add a object as winmenu to object repository | carina | QTP | 2 | 12-05-2007 06:01 AM |
| Adding dropdown and table objects to Object Repository | praveenchandupatla | QTP | 0 | 08-02-2007 08:54 AM |
| How to add the Oracle form 6i objects in object repository | gopathipraveen | QTP | 0 | 07-11-2007 07:36 AM |
| Per-action repository and shared object repository | Geek_Guest | QTP | 1 | 06-22-2007 05:29 AM |