First, let’s take a look at how I solved my problem of automating keystrokes from the number pad. This will be genericized so that you can run it inside QTP or even just save it in a .vbs file and execute it. It launches Notepad, waits for the notepad window to exist, makes sure it is activated, and then sends the keystrokes to generate the copyright symbol ©. Through messing around with AutoIt while trying to solve the problem of… [continue]
AutoItX3 and QTP Part 1
As usual, after I got into writing this, it got too long to be a single post. Part 1 covers the background for why I began to use AutoIt in QTP and how you can go about setting up a system to use it within QTP without installing all the tools that come with a full version of the AutoIt software. Part 2 will follow shortly and will cover some sample code that demonstrates how I used AutoIt in my… [continue]
Bringing Windows to the Front in QTP Scripts Part 2
Well, due to recent discoveries, I have to recant a lot of what I said in Part 1. Embarrassingly, that functionality is a snap to do with QTP’s Window object, and I finally figured out how to successfully call ShowDialog on a .NET Form and pass the QTP window to it making the dialog modal to the QTP window. This is what I was trying to accomplish and the whole reason I began this quest in the first place. In… [continue]
Bringing Windows to the Front in QTP Scripts Part 1
This became too long to put in one post, so I broke it into two parts. Part one will cover the QTP Extern Object and the User32.dll function SetForegroundWindow. Part two will cover the BrowseForFolder function on the Shell.Application object. Over the past few months, I have done a couple of custom testing functions that require user input. For example, in one script I was exporting an Excel file with some metrics pertaining to average log in and page load… [continue]
QuickTest Pro Introduction
For almost a year now, I have been developing automated tests for a client who uses HP’s (formerly Mercury’s) QuickTest Professional and Quality Center. In my search for more knowledge and expertise as the months have passed, I have found that there is an amazingly huge community revolving around these products out there. The capabilities for automating application testing are amazing. However, I have also found that, like other software products, the documentation does not begin to hold the unreal… [continue]