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 add objects? within the QTP forums, part of the Software Testing category; How can we add objects to object repository during run time? Note : This is the question asked by a visitor thirupathi. I am posting this in proper forum....
|
|||||||
|
|||
|
How to add objects?
How can we add objects to object repository during run time?
Note : This is the question asked by a visitor thirupathi. I am posting this in proper forum. |
| The Following User Says Thank You to JobHelper For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: How to add objects?
Hi Debleena,
Yes we can add Objects at runtime to the OR. You would have to open the OR at runtime and in a updatable mode. Check out this code for the same - Set QtApp = CreateObject("QuickTest.Application") Set QtTestResources = QtApp.Test.Settings.Resources QtTestResources.Load{Path of the Repository to be Opened}, mode mode would be readOnly or Updatable. Once you have the OR loaded use, Add method and pass Obejct as parameter. Dear Prasad and vijaysagar, Unfortunately we dont have SETROPROPERTY method in QTP. Last edited by rajaputra; 12-26-2007 at 08:40 AM. |
|
|||
|
Re: How to add objects?
Quote:
What does your code do exactly? It seems incomplete to me. Does it "load OR during run-time" or does it add objects to OR during run-time? |
|
|||
|
Re: How to add objects?
Hi Anshoo,
It will load OR during runtime. Here mode will be updatable. Becuase we want to add objects to the OR. So, OR should be in updatable mode. If it is in readonly mode we cannot add object / modify ObjectRepository. Thats why we required mode. |
| The Following User Says Thank You to rajaputra For This Useful Post: | ||
|
|||
|
Re: How to add objects?
Hai Rajaputra,
I have a doubt regarding the code. I am using QTP 9.5. While using the code an error message is being displayed that Object doesn't support this property or method. As for my reference through QTP Help, I observed that we can load object repository to the objectrepositoryutil object. Can u please give me clrification on this. I need it immediaely. Thanks, Siva |
|
|||
|
Re: How to add objects?
Hi Babsun,
you can use below method to add object repository to your test. Repositoriescollection.Add "RepositoryPath" Here, RepositoryPath is path of the object repository
__________________
__________________ Thanks & Regards!! RAJAPUTRA www.makeqtpeasy.blogspot.com http://rajaputra.spaces.live.com/ |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mapping of domain objects to a relational database | nancyphilips | Database General | 1 | 09-24-2006 05:36 AM |