Results 1 to 5 of 5

Thread: how to minimize the storage of objects in Object Repository ?

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    24

    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..


  2. #2
    Contributing Member
    Join Date
    Nov 2007
    Answers
    48

    Thumbs up 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


  3. #3

    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.


  4. #4
    Junior Member
    Join Date
    Dec 2007
    Answers
    24

    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 ?


  5. #5

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact