环境筹备

  • 运行节点设施须要装置 allure report 运行环境
  • Jenkins 须要装置 allure report 插件
  • python 依赖: pip install allure-pytest 

Jenkins 我的项目配置

  • 构建执行命令

  • 增加构建后动作

配置后的款式

报告款式

Allure Report 打包发送至邮箱

前提条件:

  • 须要增加邮件插件

通过 ssh 命令打包压缩文件

增加邮件发送配置

将打包生成的压缩文件门路配置到 Attachments 中

解压后,在报告文件夹门路下,应用 python 搭建繁难服务器查看报告

python -m http.server 8001# 浏览器进入 localhost:8001 查看报告