One of the more frustrating facts about the script-engine implementation in QTP is that you cannot bind it to external object’s events. For example – automatically executing code when an event occurs in the application under test (the application closes / opens / opens a new document / access the DB, etc.). The following article …
Tag Archive: QTP
Sep 20 2010
HP QuickTest Professional 11.0 is out!
Silently, without any major press releases or announcements, HP has rolled out QTP 11.0 and QC 11.0 to their resource site. As with previous versions, you can download an evaluation version and check it out for yourselves (requires an HP Passport user). I must say that I have had the chance of working …
Oct 13 2009
Accessing PRIVATE Properties in .Net Controls
Background One of the more frustrating aspects of automating any complex application is knowing that the application holds a lot useful information which isn’t accessible to QTP. Sometimes accessing the information is just not possible by any means (for example, accessing runtime properties from MFC applications), but other times, it seems to be just a …
May 13 2009
Vertical text selection in QTP IDE
Barak Kinarty shares a very useful QTip on pefroming vertical text selection in QTP’s IDE.
Feb 07 2009
Writing QTP Tests in Visual Studio
Background It’s no secret I’m not a fan of QTP’s code-editor – it lacks intellisense, meaningful autocomplete, code folding, and many other “Must” features; And while QTP 10 will improve the situation, the IDE’s core problems will remain. In addition to the IDE’s shortcomings, QTP’s reliance on VBScript cripples it in many key areas such …
Jan 21 2009
No Regular-Expressions for the Desktop Object
Update: Thanks to Peretz, we now know that there is a hotfix that solves the issue (designated QTP_00563), and that the fix has already been incorporated into the upcoming QTP 10 (Atlantis). Thanks a lot for the information and the care! I have recently spent over a day of frustrating debugging until I’ve finally stumbled …
Nov 17 2008
Change QTP’s Automatic Object-Naming Convention
Have you ever got frustrated with the arbitrary names QTP gives to test-objects? When you want it to take the name from the “HTML ID”, it takes it from the the object’s “CLASS”; when you want it to take the “PROG ID”, it takes it from the “NATIVECLASS”; and in general, it seems that QTP …
Nov 15 2008
Change the Maximum Length of GUI Objects’ Logical Names
Have you ever wanted a little extra room for your objects’ logical name? Well, now you can use all the room you’d like by using this QTip! The length of the logical name is controlled by two values within the registry, MaxLogicalNameLen and MaxLogicalNameLenCutWord. MaxLogicalNameLen sets the cut position for the logical name if it …
Nov 08 2008
Creating a Test Session Instance of the Extern Object
Chad Ullman offers this great QTip, that makes working with external Win32 DLL’s much MUCH easier: QTP’s Extern object is extremely useful for extending the power of QTP by exposing all of the Win32 API. But it does have one drawback that can make development a little tricky: because Extern is a reserved object in QTP, …
Oct 10 2008
Constructor Arguments in VBScript!
Our Class Inheritance Parser has just received a major update. Among the changes is the support for Constructor Arguments. Most programming languages allow you to pass parameters when you create an instance of your class. These are called constructor arguments. VBScript’s constructor (the Class_Initialize sub) can not receive parameters, so usually we must resort to …



Recent Comments