在使用Maven运行Selenium测试期间生成Jenkins surefire报告时出现NumberFormatException

时间:2012-06-08 14:25:06

标签: java maven selenium jenkins surefire

我们希望将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

请提供纠正问题的建议。

0 个答案:

没有答案