Upload Selenium/JUnit test results to Quality Center

Since I’ve had so many requests (the latest being today), and since I’m working on something very similar for a current client, I decided to take some time today to respond in detail about integrating QC with JUnit & Selenium.

The steps I’ve used for Selenium / QC integration are:

1. Write tests with Selenium using an open source test framework (JUnit/TestNG/PHPUnit/NUnit/RSpec/py.test)

2. Map your test cases to QC test cases. I described how I did this in detail by extending JUnit in these posts:

Note that this isn’t necessarily the way I’d do it now. Annotations are useful, but I think a mapping file is perhaps easier. Simply create a spreadsheet with the QC TestId in one column and the xUnit test name in another column. This is a little trickier with parameterized tests.

3. Parse the tests results from your test runner and update Quality Center using the OTA API (OTAClient.dll is installed with QC Explorer & can be downloaded from QC. Go to Help->Addins Page->HP Quality Center Client Side Setup Add-in)

I have a quick example of how to connect to Quality Center using OTAClient here:

Connecting to HP/Mercury Quality Center from a client side script

You can check out my sample QCIntegration project on GitHub:
http://github.com/fijiaaron/QCIntegration

I’m adding more details about integrating with Quality Center on One Shore.

Buliding a better spreadsheet

How many people are frustrated by just doing a sum or match count–or don’t even try? How about auto-resizing of fields? Or viewing two tables side-by-side? Or adding comments without filling a cell. Or creating simple charts? These should be easy on spreadsheets.

Things that seem tricky like using a relational database on the backend or versioning data aren’t really tricky, and they’re not complex concepts.

This is 2011! You should be able to have multiple tables side by side, with descriptive bubbles and dynamically updated data, automatic formula calculation from templates, and form data-entry workflow without even thinking about it.

How bad spreadsheets suck

This morning I was thinking about how we’re stuck with pretty much the
interface VisiCalc gave us back in 1980 (without the user-friendliness) and it doesn’t have to be that way.

90% of people that use spreadsheets don’t even know how get the sum for a column. Which is the whole reason spreadsheets were invented! That stuff should be automatic. Highlight and click the big green plus sign. Or select a row and type a word and hit “filter” or “count”

I like the idea of storing formulas, but I think I could go further to make it easier, so grandma can use it like a calculator backed by a database. So she buys crap like QuickBooks to balance her checkbook. It’s not that it’s too hard to do, it’s that the UI of spreadsheets is so horrible.

I think we can do better and I’m toying with the idea of building a
better spreadsheet. There has to be a better interface.