Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Repository query
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Can someone tell me what is a shared repository? Is it same as the default repository or we change some settings of default repository to make it a shared ??

And how do we call a object repository at runtime...I have to call a particular object repositort of one application while running automation scripts for another application..
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Priya,

Shared repository is a repository which you can make at any place in your hard disk.Shared repository is common for all the actions that is the object that you have defined in this repository would be used and same in all the actions that you run.It has its own advantages and disadvantages.I would suggest you not to use shared repository until you are well versed with the data flow of your application and QTP as well.Use per action repository.It would be easy to handle.Anyways,if u wanna know how to make and where to make a shared repository then open the QTP and go to Test->Settings and then click on the Resources tab.There you will see the object repository type and you can browse and give the path of your own shared repository.
As far as I know,it is not possible to call a object repository of one application while running script for another application.

-Deepak
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
But you can load object repository at run time instead of doing it throug settings.
Here is the code:

Code:
Set ORL=CreateObject("Mercury.ObjectRepositoryutil")
ORL.Load "Shared object repository path is given here"

this code will load the shared repository at run time.

Correct me if I'm wrong.
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Her question was to use object repository of one application in another application.You can offcourse load the object repository(shared) but how can you use both the repositories because the windows of both the applications would be different.But If you can place the objects of the windows appearing in the new application then offcourse you can use the shared repository for both the applications.BUt,it will be so cumbersome and quite confusing and chances of error and not running smooth would be very high.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Rolleyes Browse object query Hema a newbie 0 1,800 07-22-2014, 08:37 PM
Last Post: Hema a newbie
  How to access webtables without adding into Object Repository ramkumarad 7 9,634 12-30-2013, 07:38 PM
Last Post: Sathiya
  SQL Query Issue in QTP rajiv.qtp 1 2,476 11-28-2013, 10:36 AM
Last Post: Jay
  which gives better performance qtp with Object repository or qtp without OR. qtpexpert 6 6,549 10-29-2013, 08:56 PM
Last Post: Parke
  QTP hangs when adding object to the object repository sathya2kn 1 3,422 12-31-2012, 03:33 PM
Last Post: krr

Forum Jump:


Users browsing this thread: 1 Guest(s)