Template for test reports


Is there a way to change the generated test reports. I would like to have a template which is been used for the reports. A possible usecase is a selenium test with an automatic screenshot on failure and a link to the screenshot from the failed test.

I was not able to find any information related to such a template.


There is no templating mechanism. You’d have to transform the html report or create your own, e.g. from the xml report.

Let’s say I wanted to create my own xslt transformation from the TestNG .xml results, is it possible to add data into that .xml report , such getting one of the string arguments to my test to show up in the .XML result file so that I can transform and display a column for that value on my report?