Object Identification in QTP, Tips and Tricks in QTP
Seeing similar queries often in my mail box these days, so I decided to record a couple of videos.
In case, If you haven’t counted emails in standard view (of Gmail) using QTP earlier, I would suggest you to attempt it now. It becomes a bit interesting especially if you have never worked on frames before. Also watch the videos below it has a couple of methods to deal with dynamic objects and frame objects.
Counting number of emails in basic HTML view…
Counting number of emails in standard view…
This is the function in the videos above to extract the number from Inbox string -
msgbox mid(strText, instr(1,strText,"(") + 1, (instr(1,strText,")") - instr(1,strText,"(") - 1))
Have you downloaded the FREE Optimizing QTP eBook yet? Get It Now!
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.
Advanced Concepts
Through this article I would like to throw an insight on an alternate and easy way to manipulate/automate variety of operations in PDF files using QTP. Please allow me to introduce an interface which will help you to easily working with PDFs. The focus of this API is relatively small, but interesting. Hope you will find this useful. – Saket.

The most challenging issue with PDFs is that it could be of any kind, not just a tabular data; it could have plain text, images or even forms to fill up. So this makes a tester’s life a bit difficult, never mind, we will definitely find an easy of do it… Continue reading →
Miscellaneous Concepts on QTP, Some Common Errors/ Issues, Tips and Tricks in QTP
Some time back I faced a situation where my QTP stopped responding and I had to close it forcefully. To get some help on what exactly was going on, I went to results file. But I was not able to browse through it. It was showing an incompatibility error.
(Click To Enlarge)
These results were generated with a later version of QuickTest Professional. To view these results, install a later version of QuickTest Professional or the Test Results Viewer.
I observed that the two files which gets affected in such cases are Results.xml and GeneralInfo.ini
Results.xml – contains all the test result data in the structured format. Due to abnormal closing of QTP, some tags in this xml file does not close properly, due to which test result viewer is not able to read it properly.
Continue reading →
Advanced Concepts, Web Services
Yes, you got it right testing Web services can be done without using Web services add-in. All this is possible with the help of WinHTTP (Microsoft Windows HTTP service), which provides a high-level interface to the HTTP internet protocol.
We can use the com object WinHTTPRequest in our tests in order to invoke any operation to a web service. We will need to post the SOAP request to the web server using methods and properties of WinHTTPRequest and we can get the corresponding response from the service.
Let us now try this out, open QTP and make sure you have not enabled Web Services Add-in in Add-in manager at startup. Continue reading →