我们希望将Selenium测试用例发布到Jenkins。我们将surefire报告插件配置为生成HTML,如下所示......
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12</version>
<configuration>
<outputDirectory>${project.build.directory}/htmlreport</outputDirectory>
</configuration>
</plugin>
但是我们在生成报告时会收到NumberFormatException。请查看以下日志。
Waiting for Jenkins to finish collecting data
channel stopped
Publishing Selenium report...
Copying the reports.
parsing resultFile surefire-report.html
Unable to parse surefire-report.html: java.lang.NumberFormatException: null
Finished: SUCCESS
请提供纠正问题的建议。