Publish JUnit reports generated with handlebars using taurus junit-xml

258 views
Skip to first unread message

André Leão

unread,
Jul 31, 2018, 9:13:10 AM7/31/18
to codename-taurus
Hello all I'm having a problem with taurus integration with Jenkins I have a test from Jmeter that I call on YAML File and everything runs fine it creates a result xml file but then I need that file
to be recognized by a Jenkins plugin that generates JUnit reports with handlebars (it basically makes that html blazemeter page inside Jenkins)
But when I point it to the junit-xml file created by taurus I get a java NULL exception as if there is not enough info to create the HTML report pages
The result I need is this 
https://web-innovate.github.io/cucumber-reports/featuresOverview.html
But from the taurus executing a jmx test.
Whoever can help its greatly appreciated

Andrey Pokhilko

unread,
Jul 31, 2018, 10:32:20 AM7/31/18
to codenam...@googlegroups.com

Hi,

Can you share NULL exception full detail ?

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

31.07.2018 16:13, André Leão пишет:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/67445430-055c-488c-aec9-15f9217bc72a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

André Leão

unread,
Jul 31, 2018, 10:40:19 AM7/31/18
to codename-taurus
[JUnit test report builder] 0. Found a xml file: JUnitReport.xml
[JUnit test report builder] Generating HTML reports
processing: C:\Program Files (x86)\Jenkins\jobs\JenkinsTraining\builds\145\junit-reports-with-handlebars\xmlData\JUnitReport.xml
[JUnit test report builder] there was an error generating the reports: java.lang.NullPointerException
com.github.bogdanlivadariu.reporting.junit.xml.models.TestCaseModel.getTime(TestCaseModel.java:67)
com.github.bogdanlivadariu.reporting.junit.xml.models.TestSuiteModel.postProcess(TestSuiteModel.java:69)
com.github.bogdanlivadariu.reporting.junit.builder.JUnitReportBuilder.processSuite(JUnitReportBuilder.java:53)
com.github.bogdanlivadariu.reporting.junit.builder.JUnitReportBuilder.processXmlReports(JUnitReportBuilder.java:66)
com.github.bogdanlivadariu.reporting.junit.builder.JUnitReportBuilder.<init>(JUnitReportBuilder.java:42)
com.github.bogdanlivadariu.jenkins.reporting.junit.JUnitTestReportPublisher.generateReport(JUnitTestReportPublisher.java:131)
com.github.bogdanlivadariu.jenkins.reporting.junit.JUnitTestReportPublisher.perform(JUnitTestReportPublisher.java:172)
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
hudson.model.Build$BuildExecution.post2(Build.java:186)
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
hudson.model.Run.execute(Run.java:1823)
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
hudson.model.ResourceController.execute(ResourceController.java:97)
hudson.model.Executor.run(Executor.java:429)
Build step 'Publish JUnit reports generated with handlebars' changed build result to FAILURE
Finished: FAILURE

Andrey Pokhilko

unread,
Jul 31, 2018, 10:56:43 AM7/31/18
to codenam...@googlegroups.com

You should contact author of that Jenkins plugin to fix this, because "time" attribute is optional. We refer to XSD schema stating that: https://github.com/junit-team/junit5/blob/master/platform-tests/src/test/resources/jenkins-junit.xsd

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

31.07.2018 17:40, André Leão пишет:
Reply all
Reply to author
Forward
0 new messages