ReportNG 1.1 – i18n, Gradle fix, chronological ordering
Over the last 6 weeks or so I seem to have taken an unintentional extended break from programming (and from posting here). It’s time to get back into the swing of things and top of my TODO list was putting the finishing touches to ReportNG 1.1 (ReportNG being an alternative HTML reporting plug-in for TestNG).
This new release fixes a problem people have been having using ReportNG with Gradle. It also adds internationalisation support. So now, as well as the default English text, there is also support for French and Portuguese. The Portuguese translation was contributed by Felipe Knorr Kuhn. The French text is just something I added as a proof of concept. It is likely to be offensively bad to a native French speaker and I welcome any corrections. I’d also appreciate any translations for other languages (just open an issue in the issue tracker and attach your translated version of this file).
The other major change is the addition of the “Chronology” page. This is something that exists in the default TestNG reports that I originally decided to leave out of ReportNG. I didn’t really have a use for it but several people have asked for something similar so I have added it.

on May 21st, 2010 at 8:01 am
i get following error can you help me,
[TestNG] Reporter org.uncommons.reportng.HTMLReporter@914f6a failed
org.uncommons.reportng.ReportNGException: Failed generating HTML report.
at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:
116)
at org.testng.TestNG.generateReports(TestNG.java:810)
at org.testng.TestNG.run(TestNG.java:796)
at org.testng.TestNG.privateMain(TestNG.java:952)
at org.testng.TestNG.main(TestNG.java:926)
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation o
f method ‘stripThreadName’ in class org.uncommons.reportng.ReportNGUtils threw
exception class java.lang.NullPointerException : null
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j
ava:246)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer
ence.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere
nce.java:220)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java
:55)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166
)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect
ive.java:114)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:230)
at org.apache.velocity.Template.merge(Template.java:256)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:449)
at org.uncommons.reportng.AbstractReporter.generateFile(AbstractReporter
.java:102)
at org.uncommons.reportng.HTMLReporter.createChronology(HTMLReporter.jav
a:204)
at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:
110)
… 4 more
on May 21st, 2010 at 2:41 pm
@sasi, it seems there are a couple of bugs in this new version. I am working on a new release to address them.
Regarding your specific issue, it seems that the thread ID for the method is null. I’m not sure why this is the case but I can make the code more defensive so that it doesn’t cause it to fail.
on May 21st, 2010 at 11:19 pm
[...] ReportNG 1.1 – i18n, Gradle fix, chronological ordering [...]
on June 10th, 2010 at 7:34 am
only testng report is generated not reportng?? -can you help me
iam calling from command line like this ,
“C:\Program Files\Java\jdk1.6.0_20\bin\java” -classpath “.;C:\Program Files\selenium-server-1.0.3\selenium-server.jar;C:\Program Files\selenium-java-client-driver-1.0.1\selenium-java-client-driver.jar;C:\Program Files\selenium\junit-4.8.2.jar;C:\Program Files\selenium\logging-selenium-1.2.jar;C:\selenium\reportng-1.1.1\reportng-1.1.1.jar;C:\selenium\reportng-1.1.1\velocity-dep-1.4.jar;C:\selenium\testng-5.12\testng-5.12.jar;C:\Program Files\selenium\;C:\selenium\;C:\selenium\invoice;.” org.testng.TestNG testng.xml -d “C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\test-output”