Monday, June 6, 2011

TestRunner - A simple interface to pick and run your test from huge test suite.

Ever since I started writing the automated tests suites for web projectes, I was looking for an interface from which I can pick the a particular test run it and see the result on the same interface. I talked to guys about this and I understood that most of the guys dealing with the test scripts are in need for some thing like I dreamt off. I searched everywhere I could but with n luck at all.
then I started thinking about implementing a simple interface by myself. I definitely wanted an interface that mimic the dashboard of the continuous integration tools like cruise control and the hudson. But with more client side interaction for a good user experience.

Since most of our test scripts were written in java built upon TestNG I decided to write a custom parser with which I can generate a list of test classes and test methods. Since I posses mere basic knowledge of Java, I queried this to many colleagues and searched on the web. After days of wantering I successfully wrote a simple parser which build a map with classes and test methods. Then build the interface with ExtJs framework which displays a tree structure for the testsuites. When I showed this to my colleagues everyone encouraged me to build features on to this and I am currently working on it.

I am sure many of the Engineers who maintain the huge stack of test scripts will thrilled to see an interface like this. So I thought of putting this public and uploaded the code to git hub.

Checkout the code from here https://DenZie@github.com/DenZie/TestRunner.git