Geeks With Blogs

News QTP and Stuff
Theo Moore Questions... Morphology? Longevity? Incept dates?
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 on Thursday, December 29, 2005 3:56 PM | Back to top


Comments on this post: Mercury Interactive>QuickTestPro: Object Repository management

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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.

Left by Kevin Abel on Jan 01, 2006 4:43 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Theo Moore on Jan 01, 2006 5:20 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Radika on Apr 25, 2006 6:38 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Kishore Kumar on Nov 23, 2006 12:18 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Kishore Kumar on Nov 23, 2006 12:19 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Eknath on Jan 22, 2007 4:54 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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 .
Left by Manish Basnal on Apr 09, 2007 4:49 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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 .
Left by raghavendra on May 27, 2007 8:59 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
click that link and fill the form .
u wil get e-mail for the tool to download
Left by Ramesh on May 28, 2007 3:04 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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.
Left by Bamiela on Jun 11, 2007 2:19 PM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
hi
i would like to try your tool for QTP repository
Left by PRANEETHA on Jun 20, 2007 4:48 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
hi
i would like to try ur tool for qtp repository management
Left by PRANEETHA on Jun 20, 2007 4:56 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
we want clear discriptive programming script
Left by KISHORE KUMAR SAMBU on Jun 30, 2007 1:57 PM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
i need t download qtp 9.2
Left by syeda hajra on Jul 19, 2007 12:09 PM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
PLEASE MAKE AVAILABLE THE FULL VERSON OF QTP SOFTWARE
Left by abhishek rai on Sep 19, 2007 4:44 PM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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 .
Left by kmuralidharan on Dec 05, 2007 6:42 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting Gravatar...
I want Trail ersion of mercury interactive
Left by Amol on Dec 27, 2007 12:59 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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 .
Left by Murali on Jan 04, 2008 10:56 PM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Kamran Ansari on Jan 11, 2008 8:42 PM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Vinod on Jan 28, 2008 6:41 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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
Left by Vinod on Jan 28, 2008 6:41 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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.
Left by VINAY on Mar 31, 2008 5:20 AM

# re: Mercury Interactive>QuickTestPro: Object Repository management
Requesting 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!
Left by WenBo.Wei on Apr 15, 2008 11:29 PM

Comments have been closed on this topic.
Copyright © Theo Moore | Powered by: GeeksWithBlogs.net