我们想将 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
请提供解决问题的建议。