TestNG XSLT 1.0

TestNG-XSLT, a small project of mine, has finally made it to 1.0. It’s currently tested only with Firefox 3.x and Internet Explorer 7, but it will probably work on most modern browsers. For the moment I thought it is more important to target the popular browsers and leave the more exotic ones for later.

Some of noteworthy features that I’ve added since the project start:

  • Maven plugin with access to all transformer features and settings.
  • SVG pie chart with the overview of the pass/fail/skip status.
  • Configurable CSS style sheet – you can build your own “skin” by overwriting the built-in styles and setting the testNgXslt.cssFile parameter. More about this here.
  • Ability to change the report title, to generate information about test durations and other settings configurable through XSL transformer parameters.
  • Other smaller or bigger issues and feature requests reported by users.

I want to thank all the guys that used this and came up with bugs, feature requests and suggestions: Andreas Guther, Xuan Ngo, Francis Henninger, Csongor Gyuricza, Andreas Kuhtz and others.

Last, but not least, I would like to mention that Haw-Bin Chai has managed to successfully integrate TestNG-XSLT in Lightest, a lightweight testing framework based on TestNG and Groovy.

The download is available here. If you use Maven, make sure you update your pom.xml to get the 1.0.9 version of the plugin.

7 comments ↓

#1 Mihai Campean on 01.22.09 at 3:39 am

This looks like a nice tool, congrats on getting it to version 1.0.

#2 Tarun on 01.23.09 at 5:41 am

I am yet to figure out How I can use TestNG XSLT for my project wherein I am using TestNG. I am a QA engineer and use Selenium RC with TestNG. TestNG XSLT reports look extremely nice but I could not find any step by step document which could help me in letting TestNG XSLT configured.

~ Tarun K

#3 Cosmin Marginean on 01.23.09 at 6:16 am

Tarun, thanks for your interest in this.

If you use maven, you can take a look here: http://code.google.com/p/testng-xslt/wiki/MavenPlugin

If you use Ant, there are some samples in the download zip.

Anyways, if you need more details please post a inquiry on the user mailing list: http://groups.google.com/group/testng-xslt-users
I can contact you there and help you out

#4 Tarun on 04.27.09 at 7:54 pm

Hi Cosmin,

We are working on Selenium Doc for version 1.0. Documentation is hidden for now and would be made public very soon.
TestNG XSLT reports fit very well with Selenium – Java Tests. I want to provide reference of TestNG XSLT in the Selenium Doc for reporting of test result. I hope it would not be an offence to you, right?

Thanks
Tarun K

#5 Cosmin Marginean on 04.27.09 at 11:27 pm

Hey Tarun,

No offense at all. Au contraire :) . I am glad you found good use for it.

#6 Jason on 05.13.09 at 7:34 am

Is there a version that would be usable within CruiseControl Dashboard? Any ideas on this?

#7 Cosmin Marginean on 05.14.09 at 4:53 am

Unfortunately I am not familiar with CruiseControl. But the output of this is a bunch of HTMLs so if you can find a way to link them to CC, then you should be good. (If this is what you mean)

Leave a Comment