我如何在詹金斯生成HTML报告 [英] How can I generate html reports in jenkins

查看:70
本文介绍了我如何在詹金斯生成HTML报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基于Maven的项目中发布HTML报告插件"的构建后操作步骤的图片

添加插件后,我也收到http 404错误.

After adding the plugin also I am getting http 404 error.

是否需要编写任何Shell脚本或管道中的任何代码来生成html报告,或者直接我们可以生成html报告?

Is there anything required to write any shell script or any code in pipeline to generate html reports or directly we can generate html reports?

能否请您帮我解决错误.... ??

Can you please help me out in resolving the error....??

推荐答案

因此,在我的项目中,我首先创建一个在运行本地测试时创建的报告(为此使用 ExtentHtmlReporter 库)

So in my project, first I create a report that create during running of my tests localy (use ExtentHtmlReporter library for that )

  1. 在我的詹金斯=>配置
  2. 一直进行到构建后操作"
  3. 按添加构建后操作"
  4. 按发布HTML报告"

添加的图片

在添加的字段中,您应该这样填写 path,html文件名(将其添加到我创建报告的项目中的图像)

in the added field you should fill like that the path , the html file name (the image that added it my project where my report create)

这篇关于我如何在詹金斯生成HTML报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆