Mercury Interactive>QuickTestPro: Object Repository management

For those of you not in the software testing world, QuickTest Professional (a.k.a., QTP) is a testing tool made by Mercury Interactive. It's a good, as far as those type of tools go, as anything available in my opinion. However, there are a couple of things I don't understand about it's architecture. I am only going to discuss one, though.

Bear in mind this discussion is totally web-based since after all, we are a web-based company.

QTP "learns" and "remembers" objects (these are things like fields, checkboxes, etc...not just controls, mind you, but anything on a page) in a file called an object repository. This is a binary file containing info about the object, it's properties, methods, etc., and how to interact with the object during playback (i.e. "runtime"). Mercury has stated that editing the file by opening it binary is a very *bad* idea.

I personally think the object repository is handy sometimes, since it allows you to share an existing repository over several tests and maintain them in one place (yay for reuse). However, it is also one of the limitations of the design because the repository itself is a pain to manage. Basically, you have no control over it. You can "learn" objects into it, you can rename them, and delete them. That's about it. You can add some properties, and remove some, but this functionality is rarely useful. You can also use the API to add objects to it, but this isn't usually a realistic method. You can also grab the objects at runtime, but this makes mainteance over many tests tough.

This limit to management may seem like no big deal, but here's the problem: if you let QTP "learn" an object, you have no control over where it places it in the repository. Since each object is referenced by its Browser.Page.Object, if QTP creates a new Browser.Page.Object for the new learned object, you might not have reference to the object for manipulation when you want it. QTP provides no tools to move/edit/change the object repository!

Fortunately, there is an API, and I currently writing a tool to manipulate the repository via VB.Net, but I am sure surprised QTP doesn't come with one. If anyone is interested, I'll provide access to the tool.

Next time, commentary on the other thing I don't understand about QTP's design.

posted @ Thursday, December 29, 2005 3:56 PM

Print

Comments on this entry:

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Kevin Abel at 1/1/2006 4:43 AM
Gravatar
The worst part of QTP is finding a way to pass variables between actions.

I have 12 years of WR experience. 6 months of QTP. I just finished my last gig on Friday. Do you know of any work in North or South East of the U.S? I am a U.S. citizen and live in NYC and FL.

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Theo Moore at 1/1/2006 5:20 AM
Gravatar
We are currently looking for a new member for our automation team (there are only 2 of us) and are basically putting it together on the "ground floor". Send me a note at diesmia@gmail.com, and we can begin a dialogue about it.

Theo

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Radika at 4/25/2006 6:38 AM
Gravatar
Can i have the code for object repository management.
Iam at present working on automation of a web based app developed with vb.net and c#.net.
Most of the windows and dialogs are not recognised by the Object repository. I think as mentioned in the write up above, it stores by ceating a new object and loses reference eventually.
Can i use your tool? If so please tell me from where can i get , if at all it can be shared.
wih tons of thanks
radika

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Kishore Kumar at 11/23/2006 12:18 AM
Gravatar
Currently I am working using Descriptive Programming. In this creation of Object descriptions is consuming lot of time. I am looking for an automatic solution of Creation of Object properties in a text file by reading the properties of the Text Objects. Can you share the tool or give an idea abt the API

Thanks
Kishore
kkdonthireddy@gmail.com

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Kishore Kumar at 11/23/2006 12:19 AM
Gravatar
Currently I am working using Descriptive Programming. In this creation of Object descriptions is consuming lot of time. I am looking for an automatic solution of Creation of Object properties in a text file by reading the properties of the Text Objects. Can you share the tool or give an idea abt the API

Thanks
Kishore
kkdonthireddy@gmail.com

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Eknath at 1/22/2007 4:54 AM
Gravatar
Hi,

Can anyone help me in adding brower in the QTP object repository. I already added one browser using 'add object' functionality. But now not able to add different browser in same acion.

Thanks & Regards,

Eknath

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Manish Basnal at 4/9/2007 4:49 AM
Gravatar
hi Theo Moore,
i am very much intersted about that tool which is discussed above
can u please Provide url of that usefull development by you .

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by raghavendra at 5/27/2007 8:59 AM
Gravatar
hi Theo Moore,
i am very much intersted about that tool which is discussed above
can u please Provide url of that usefull development by you .

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Ramesh at 5/28/2007 3:04 AM
Gravatar
click that link and fill the form .
u wil get e-mail for the tool to download

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Bamiela at 6/11/2007 2:19 PM
Gravatar
Hi Theo,
I am in need of that object repository tool written in VB.NET. Iam writing a wrapper for QTP in .NET as i require loads of data to be inputted thru QTP automation. Can u pls send me the URL to my mail id. Thanks in advance.

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by PRANEETHA at 6/20/2007 4:48 AM
Gravatar
hi
i would like to try your tool for QTP repository

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by PRANEETHA at 6/20/2007 4:56 AM
Gravatar
hi
i would like to try ur tool for qtp repository management

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by KISHORE KUMAR SAMBU at 6/30/2007 1:57 PM
Gravatar
we want clear discriptive programming script

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by syeda hajra at 7/19/2007 12:09 PM
Gravatar
i need t download qtp 9.2

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by abhishek rai at 9/19/2007 4:44 PM
Gravatar
PLEASE MAKE AVAILABLE THE FULL VERSON OF QTP SOFTWARE

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by kmuralidharan at 12/5/2007 6:42 AM
Gravatar
Hi
I need mercury QTP-9.2 trial software.After that i have to register the qtp-9.2 .Now I am
using 9.0 with seat license. i want to update my
qtp-9.0 to qtp-9.2 with new machine instead of old machine .

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Amol at 12/27/2007 12:59 AM
Gravatar
I want Trail ersion of mercury interactive

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Murali at 1/4/2008 10:56 PM
Gravatar
hi Theo Moore,
i am very much intersted about that tool which is discussed above
can u please Provide url of that usefull development by you .

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Kamran Ansari at 1/11/2008 8:42 PM
Gravatar
Hello Theo,
My name is Kamran,and I am a Software Development Engineer in Test. I have recently started using Quick Test Pro, and I am finding myself wanting to display the information contained in the Object Repository. Now, I know you don't have access to the tool you wrote anymore. I was wondering if you could point me to the API you used in your tool. I guess I should be able to take it from there.

Thanks a lot for your assistance.

Best,
-Kamran

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Vinod at 1/28/2008 6:41 AM
Gravatar
Hi,

Can you please tell me how to programatically access properties of objects in the object repository.

i.e. I have a script with its own OR. I want the script to read the properties of the objects already in the OR and then perform some other action using that property.

Thanks in advance.

_Vinod

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by Vinod at 1/28/2008 6:41 AM
Gravatar
Hi,

Can you please tell me how to programatically access properties of objects in the object repository.

i.e. I have a script with its own OR. I want the script to read the properties of the objects already in the OR and then perform some other action using that property.

Thanks in advance.

_Vinod

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by VINAY at 3/31/2008 5:20 AM
Gravatar
In your comments it is mentioned "I currently writing a tool to manipulate the repository via VB.Net, but I am sure surprised QTP doesn't come with one. If anyone is interested, I'll provide access to the tool." Please send me details of this information.

# re: Mercury Interactive>QuickTestPro: Object Repository management

Left by WenBo.Wei at 4/15/2008 11:29 PM
Gravatar
Hi there,

I am a automation engineer in HP, it's awesome that you develop such a tool,I really want to try this tool in my testing, if it works as your design,HP may integrate this part into QTP and make this tool more perfect!
Comments have been closed on this topic.
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910