Not automatically. You could write your own logic to add the property after the report is generated though. It's just HTML. Or even generate your report from the XML - that would be more work though and only if you had a major customization.
Thank you Jeanne for your reply.
The html file that is created from junitreport task, to customize it I guess I'll have to edit junit-frames.xsl
How exactly can I access the value attribute of property task in this .xsl file?
author & internet detective
I am trying to achive the same thing (get a custom JUnit report). However, considering the variable info that I am trying to add in the JUnit report, I don't really want to do it by modifying the HTML with an ANT task. My intention is to add, somehow in the JUnit XML report, additinal tags/nodes (one or more depending on the test run).
I've read a post where suggest using System.out to print lines and they are going to be available in the XML report. However, it is not helpfull since they are not being displayed as additional tags in the xml report.
Once I have the XML report with the custom tags, I am going to use XSLT ANT task to generate a custom HTML report which is going to consider the info from the additional tags and they are going to be displayed in the report as new conlumns or as links to some other resources (depending on the test that is being run).
Is there a way to achieve this? Any other ideas? Please need help
Joined: Jul 03, 2011
did you try editing .xsl file?
Joined: Jul 08, 2011
Thanks for your quick reply.
I think editing/creating the .XSL file is the next step. First I need to have the XML with the additional/custom tags/nodes that stores the additional info that I need to display in the report.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com