Archive for the ‘Uncategorized’ Category

Executing test cases via the queue

Tuesday, June 10th, 2008

A central server manages every aspect of the queue. All interactions with the queue take place via Apache over port 80, using very simple LWP::Simple (HTTP) requests. Nearly every CGI script in this discussion was written using basic Perl. (more…)

Using Rally as an automated test case repository

Thursday, June 5th, 2008

Rally is the centralized repository for our… everything. We use it for our Story Cards, Defects, Test Cases… everything. Our test execution platform doesn’t require it, but their simple API makes things extremely easy to access via script. It doesn’t do real Configuration Management - it doesn’t build the software or perform source control. It just helps us manage the process and all of the test data we generate.

(more…)

I sure could use an “implements interface” in VBScript right about now…

Wednesday, June 4th, 2008

In the last post, I showed a basic code snippet and described a little about how we implement our test scripts for automation. This post will go more into detail about how the underlying objects are implemented.

(more…)

Our Automated Test Process

Monday, June 2nd, 2008

It’s been a long time since we did regular updates, and that’s about to change. We’ve spent the past 18 months building and solidifying a team structure and a test platform, and it’s now time to start talking about it. We intend to release some of our work under the GNU public license, and this background information should help you in making the decision to use it.

We will post a series of articles, which will describe our processes in detail. Then we’ll round it out with several examples of how this framework solved most of the problems that typically plague test automation efforts. Comments and suggestions are welcome.
(more…)

QTP’s mysterious Init method

Thursday, May 22nd, 2008

One limitation of QTP that has always bothered me is the inability to reuse its web objects after the browser reloads. I spend countless cpu cycles parsing the DOM to find an element, grab enough properties to make it unique, build a description with those properties and finally get the right micobject. Then I perform some action and that reloads the page, and my object is useless. If I want to use it, I have to start the process all over again.

After years of struggle to find an answer, I packed some gear, hired a Sherpa and set off to find a guru who could give me an answer.
(more…)

HP Software Universe 2008

Tuesday, May 20th, 2008

In case anybody wants to come by, I will be presenting at HP Software Universe this year on Thursday 6/19 at 8:30a.

The session is Automating Web 2.0 using HP QuickTest Professional 9.5 Web Extensibility.

This should be a good session. I’ve become a big fan of QTP’s Web Extensibility. I will show you how we are using it to create classes for our custom web controls.

Also, Patterson Consulting is donating a Test Design Studio license to be given away at this presentation. I have been testing WebExt support for an upcoming version of Test Design Studio, and the difference between TDS and manually editing the WebExt XML and Javascript files is amazing.

Execute Javascript from QuickTest Pro

Tuesday, May 20th, 2008

Despite persistent the rumors to the contrary, you really can execute Javascript from QTP, and not just using Web Extensibility. Here is a simple function that will run some javascript in IE and return the result.

Visual Basic:
  1. Public Function evalJS(oBrowser, sJavaScript)
  2.     Set JSEntry = oBrowser.object.document.documentelement.parentnode.parentwindow
  3.     On Error Resume Next
  4.     evalJS = JSEntry.eval(sJavaScript)
  5.     On Error Goto 0
  6. End Function
  7.  
  8. Set oBrowser = Browser("version:=inter.*")
  9. evalJS oBrowser, "alert('Hello, world');"

(more...)

It’s Curtains for WinRunner

Wednesday, February 20th, 2008

I just got this email from HP:

HP Software is announcing end-of-support for HP WinRunner software, all versions (7.5, 7.6, 8.0, 8.2, 9.2). This end-of-support is based on our decision to consolidate and focus our functional testing offerings (HP WinRunner and HP QuickTest Professional) to maximize value to our customers. For migration options, support end dates and a list of FAQs, read the entire announcement here.
(more...)

QTP 9.5 now available for download

Monday, February 11th, 2008

The QTP 9.5 evaluation is finally available for download on HP's site. I haven't downloaded this one yet, but if it is like the one I downloaded from HP a few weeks ago, you should be able to use it with the same license you used for 9.2.

Help for QTP Novices

Tuesday, February 5th, 2008

This month AdvancedQTP is running The Flight Reservation Project, which is a tutorial series based on the Flight Reservation example application that ships with QuickTest Pro. This series focuses on testing a Windows application, which is outside of the Inquisition's usual subject matter of web apps.
(more...)