Geeks Talk

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.

how to minimize the storage of objects in Object Repository ?

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

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-18-2007
Junior Member
 
Join Date: Dec 2007
Location: bengaluru
Posts: 24
Thanks: 1
Thanked 2 Times in 2 Posts
naga.sd.k is on a distinguished road
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..
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-18-2007
Contributing Member
 
Join Date: Nov 2007
Location: In my Home
Posts: 49
Thanks: 0
Thanked 9 Times in 4 Posts
Sycho is on a distinguished road
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
Reply With Quote
  #3 (permalink)  
Old 12-18-2007
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
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.
Reply With Quote
  #4 (permalink)  
Old 12-19-2007
Junior Member
 
Join Date: Dec 2007
Location: bengaluru
Posts: 24
Thanks: 1
Thanked 2 Times in 2 Posts
naga.sd.k is on a distinguished road
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 ?
Reply With Quote
  #5 (permalink)  
Old 12-19-2007
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 10:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved