Object Identification in QTP, Smart Identification
I keep seeing the confusion all the time over this topic. Pl
ease fill in the survey below and write your detailed comments regarding what action (if any) you take when you see that ‘valediction hat’ in QTP test results.
Please write your views in the comment form below.
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.
Tips and Tricks in QTP
While working on a web applications using QTP, you may have noticed most of the time QTP runs too fast in comparison to the application. Moreover QTP would not perform any operation on a particular page unless that page has loaded completely (100%). You may wonder in bewilderment about what to do to make the application (web page) load faster.
Here I would like to give you a simple tip to alleviate your pain (and waiting time) a bit.
If you will notice carefully, most of the times text on a web page renders very quickly. It is the images that creates problem and increases the web page loading time. What if we can stop the images from loading altogether?
All browsers provides this facility whereby you can stop pictures from showing. To do this in IE6, go to Tools > Internet Options > Advanced tab. Scroll down to ‘Multimedia’ section and uncheck ‘Show pictures‘.
To do this in Firefox, go to Tools > Options > Content. Uncheck ‘Load Images automatically‘
Run your script now and let us know if this tip helped you. [For obvious reasons, this tip won't be of any use when you have to work on image/bitmap checkpoints.]
Related: 10 Tips to enhance the performance of QTP scripts
Miscellaneous Concepts on QTP
Can we test mobile applications using QTP?
Yes. Jamo Solution’s, M-eux test provides scripting environment to test certain mobile Operating Systems using QTP.
What are the mobile operating systems supported by M-eux test for QTP?
- Windows Mobile 6.x Professional edition.
- Windows Mobile 6.x Classic edition.
- Windows Mobile 5.0 Pocket PC edition.
Which versions of QTP supports mobile OS testing?
According to M-eux product datasheet, QTP 9.2 and QTP 9.5 supports mobile OS testing.
What are the salient features of M-eux?
The scripts created using M-eux are independent from the device hardware characteristics. Here is an extract from their product data sheet.
|
Supported Mobile OS:
- Windows Mobile 6.x Professional Edition
- Windows Mobile 6.x Classic Edition
- Windows Mobile 5.0 Pocket PC
edition
|
Supported GUI Objects:
- Microsoft Foundation Classes for Windows Mobile.
- Microsoft Compact Framework GUI objects
- HTML Web classes (through web addon)
|
|
Supported version:
QuickTest Professional Versions 9.2 and 9.5
|
Extended support CF .Net GUI objects:
- Access from the script to .Net source code class attributes and methods.
- Identification by internal .Net name
|
|
Manufacturer independent: Supports Windows Mobile independent from hardware manufacturer
|
Pocket Internet Explorer support:
- Supports automation of web/WAP access.
- Supports HTML objects.
|
|
System functions:
- Access to process information
- Access to system information
- Access to radio cell information
- Access to network information
- Access to application information
|
Monitor functions:
- Concurrent execution on multiple devices.
- Pre-defined functions to measure voice call, SMS, e-mail and others.
|
Where can we find more information on Jamo Solution’s M-eux test?
Following links can be of interest:
Miscellaneous Concepts on QTP
If you are a practitioner of regular expressions, you may be knowing, how easy it makes your life while dealing with pattern of strings. Regular Expressions is one topic, I feel, everyone in the software industry –who is even remotely related to programming- should gain mastery over. I can’t tell you enough, how many times regular expressions have came to my rescue.
Smashing Magazine, yesterday published an interesting article on advanced usage for regular expressions. Though the syntax they have used is PHP-Perl compatible but (after some minor changes in syntax) you can use it for VB Scripting needs as well. The underlying concepts behind reg-ex pretty much remains the same for all programming languages.
They have divided the topic into eight sub headings
- Greediness/Laziness
- Back Referencing: is a way to refer to previously matched patterns inside a regular expression. (One of my favorites)
- Named Groups
- Word Boundaries
- Atomic Groups
- Recursion
- Call backs
- Commenting
Check out the article here.
Also, check our earlier article on basics of regular expressions. For related questions, visit reg-ex forums.