I’ve been doing some digging into QTP’s test-objects, hoping to find some undocumented methods and techniques. Armed with the power of PDM.DLL, I’ve explored each test object, and have come up with these interesting results, all of which don’t show up on your regular intellisense autocomplete.
As this is still a work in process, the function of many methods is still unclear. I’ve set up a color coding system to make things more clear – Red = Don’t have a clue. Black = Have a pretty good idea / an educated guess. Green = Presumably know exactly what the method is supposed to do.
If any of you know the purpose and function of these methods, please fill me in by dropping a comment, and I’ll update the article.
Update: mayno224 has informed us that a Java object MethodWizard method will open a window with all the object’s internal methods (similar to the .Net form’s spy).
Registeration is FREE, quick and private.
You can either Register pr Login if you have already registered
Other environments and updates will be published when I’ve completed my investigation, and when reads will drop in more information through comments.
Posted in Environment Techniques, Yaron Assa's Blog


Yaron Assa





September 4th, 2008 at 2:22 pm
It’s very useful information. Thanks
P.S. Method toString has described in QTP Help.
September 4th, 2008 at 5:58 pm
Hi,
This is a very informative article.
I Just did some R&D and found that the ‘Starttransaction’ and ‘EndTransaction’ methods are documented in QTP Help file. You add a StartTransaction at the point in your test where you want to begin measuring the timing of a task. But in the syntax section it says -
Services.StartTransaction Name.
Not very clear why it is under the Page object. Might be someone can throw some light on it.
But Inded a very nice job by Yaron. Keep it up!!
September 4th, 2008 at 7:44 pm
Great article!
MethodWizard() opens a java window which lists all the methods available for that object as well as its parent objects. Similar to object spy. It was a very useful utility in WinRunner. Here’s a sample call…
Browser(”Arc Test (1.1)”).Page(”Arc Test (1.1)”).JavaApplet(”ArcTest”).JavaButton(”Draw”).MethodWizard
And here’s some sample Java applets to use it on…
http://java.sun.com/applets/jdk/1.4/index.html
September 5th, 2008 at 7:31 am
It is very Useful
Thanks..
September 5th, 2008 at 7:49 am
very informative article
September 6th, 2008 at 2:56 am
Great Article
Tahnks
September 6th, 2008 at 6:59 am
very useful information, keep doing.
September 7th, 2008 at 8:11 am
Good one. Thank you!
September 9th, 2008 at 8:34 am
Its really a good job u have done.Thanks
September 9th, 2008 at 11:03 am
It is great article expecting some more
September 9th, 2008 at 11:41 am
Hi,
QTP scripts can be used in the LoadRunner Controller to measure the response times and throughput for a Load Test. This reduces the over head of creating new scripts. I believe the following methods are meant for the calculation of the transaction times to measure responses of certain actions from the performance perspective :
.StartTransaction(Name)
.EndTransaction(Name, Status)
.SetTransactionStatus(Status)
September 11th, 2008 at 9:09 am
Many undocumented function will be explored through this method. It’s pretty helpful for those guys who are working with QTP.
September 15th, 2008 at 1:33 pm
helpful for me。3ku
September 17th, 2008 at 11:48 am
Nice Informatic Article.
Thanks for this.
September 19th, 2008 at 10:42 am
Hi,
a good job, I should say, carry on
in the past I investigated the same way with Office Tool MSE7.exe on the different dll files in the qtp-folders, but your application is restricted for free use. MSE7 doesn’t give full functionality you described, so your post is a good presentation.
September 22nd, 2008 at 8:40 am
Hi ALL
Can Anybody tell me how to verify the contents of a PDF attachment in a webpage???
September 26th, 2008 at 7:13 pm
Gr8 one dude
September 29th, 2008 at 5:56 pm
Please can anyone send me the material for learning QTP(Please don’t send the user guide)… gem.vin@gmail.com
October 2nd, 2008 at 4:03 pm
i am using qtp 9.2 when i am using .getvisbletext on any window , that widnow automatically closed without performing closing or click on ok button
for .NET applications
give me solution for the same
November 3rd, 2008 at 2:49 pm
hi iwant important Interview questoins in QTP…..
Plz send me any one
November 5th, 2008 at 8:43 am
hi frnds plz send me the vbscript material
November 7th, 2008 at 4:23 pm
As ankitanath has already said, the transaction timing is used for LoadRunner. Could this be changed in the write-up to show that is for LoadRunner Load Testing?
November 12th, 2008 at 3:45 am
this is really gr8, these functions will help a lot.
Please provide me with more