问题描述
我们在Jenkins中配置了一个Java MOJO。在CI中构建代码后,将生成surefire报告。我们有Junit和Selenium测试用例来测试应用程序。
We have a Java MOJO configured in Jenkins. Once the code is build in CI, surefire reports would be generated. We have Junit and Selenium test cases to test the application.
我需要以HTML格式显示来自测试用例的结果。是否有任何插件可供Jenkins以HTML格式显示内容?
I need to present the results coming from the test cases in a HTML format. Is there any plugin available for Jenkins to display the content in HTML format?
推荐答案
首先你需要安装。如果您不知道安装插件,请使用此
First you need to install the Selenium HTML Report Plugin. If you are not aware of installing the plugin, use this link
安装Selenium HTML报告插件后,添加post build脚本以从surefire报告生成HTML内容。使用以下屏幕截图配置HTML插件..
After installing the Selenium HTML report plugin, Add the post build script to generate the HTML content from the surefire reports. Use the following screenshot for configuring the HTML plugin..
使用MOJO更改 ProjectRoot
这篇关于如何在Jenkins中配置Selenium HTML报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!