Category Archive: QTips

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.

Apr 19 2009

Effectively Delete Cookies

Andrew Marin has shared the following QTip, which allows us to quickly and effectively delete all cookies in Internet Explorer.
This can be of great help to anyone who handles multiple user sessions during his tests, or just wants to reset the test environment before starting a test run.

Dec 09 2008

Exit an Action when a Timeout is Reached

This QTip is based on an answer I have given recently in the AdvancedQTP Forums. It is not rare to find QTP users and developers feeling helpless while contemplating a test run session that goes on and on, seemingly till eternity, without any sign of progress. Such a frustrating experience would lead in most cases …

Continue reading »

Dec 08 2008

Adding a Call-Chain Mechanism to QTP

Background and motivation A common frustrating experience is having your script pop-up an error dialog in some long-forgotten function, without one having the slightest clue in its regard. What usually follows is a series of trial-and-error breakpoint runs to determine which action the script was actually trying to perform when executing the function call that …

Continue reading »

Dec 04 2008

The Fastest Way to Work with GUI Objects

So, what’s the fastest way for working with GUI objects? It seems that everyone has an opinion on the matter – some insist the Object-Repository yields the best results, while others are strong advocates for working with Descriptive Programming. While one will insert every object into a variable and use that variable, another would use …

Continue reading »

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 …

Continue reading »

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 …

Continue reading »

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, …

Continue reading »

Sep 02 2008

Internationalization

Dealing with the many differing locale specifics is a major challenge when testing Web or multi-language applications that will be used in multiple countries.  It’s becoming increasingly important, with the release of technologies such as Windows 2000, to be able to support these scenarios. The new locale features in VBScript are a small step toward …

Continue reading »

Sep 02 2008

Attributes String from File

file attributes are like switches. If the switch for Hidden is on, the file is a hidden file. If the switch for Hidden is off, the file is not a hidden file. This analogy can be carried further by noting that light switches are typically under your control: you can choose to turn them on, …

Continue reading »

Page 2 of 1812345...10...Last »