As mentioned in a previous post, starting with the 5.6 version of TestNG, we have the ability to get an XML report (in the testng-results.xml file) that takes in consideration most of the TestNG features that are not available in the JUnit-compatible XML results. Although my spare time was fairly limited lately, I finally managed to create a project for an XSL transformer to handle these reports, in order to provide a useful and user-friendly output for TestNG, as an alternative to the classic HTML reports.
The project is currently hosted on Google Code at http://code.google.com/p/testng-xslt and the current version is 0.2. For the moment you can only get it from the SVN repository, but that will change as soon as I’ll have some time to write some decent documentation and pack it with a download zip. Some sample generated reports are available at http://cosminaru.ro/test/testng-xslt.
To get started, you can call ant test in the project base directory to see it running with a sample set of data. Your output should be generated in the test/single/output subdirectory. You can also use the build.xml file as a sample of integrating this with Ant and the output of a TestNG test run. Please take in consideration that the module is relying on lots of XSL 2.0 features. As far as I can tell, the only current implementation for that is Saxon, but you don’t have to worry about that since is bundled in the lib directory of the project.
5 comments ↓
Hi Cosminaru,
Just wanted to let you know I’ve incorporated the TestNG-XSLT project in the reporting for a lightweight testing framework I’m working on called Lightest. You can find a sample of the report here: http://stressfreetesting.com/lightest/sample-report/
Thanks for your work on this!
Hello Haw-Bin,
This is great news. I was just taking a look at your framework. It’s great work. Congratulations and keep up the good work!
I am really happy you could find TestNG-XSLT useful for your project. Feel free to contact me for any issues or if you need any help. I will keep you posted for bugfixes and new releases.
Best regards.
Very interesting. I agree with the comment above. stanley hand tools . I bookmarked your site. hand tools . When are you going to write another post? hand tools for trail work . I would like to be a guest author sometime.
runescape cursors
http://web.me.com/viewpost/runescapecursors
About the time we can make the ends meet, somebody moves the ends….
These days of austerity in addition to relative panic about running into debt, many people balk against the idea of making use of a credit card in order to make acquisition of merchandise as well as pay for a holiday, preferring, instead just to rely o…
Leave a Comment