Skip to content

如何将测试报告发送给领导查看? #6

@zy7y

Description

@zy7y

方法一:

  1. 使用version1.0 zip_file.py代码把整个allure报告压缩,然后邮件中以附件方式发送给领导
  2. 弊端: 领导需要先下载附件并解压,然后使用Idea/Pycharm/Vscode(安装Live Server插件)把整个解压后的报告目录打开,再在里面打开index.html

方法二:

# 1. 使用python 打开一个局域网服务并挂载allure报告文件目录,其中8080 是端口可自定义,-d xxx ,xxx是allure报告目录路径
python -m http.server 8080 -d C:\Users\zy7y\Desktop\apiAutoTest\report\html
# 它人访问 只需要使用你的内网IP:8080 即可 例如: http://192.168.0.38:8080/
  1. 弊端:局域网服务外网无法访问(可通过外网映射解决),电脑关机http服务停止,他人无法再查看报告。

方法三:

  1. jeknis构建(jenkins承载邮件服务,报告托管):https://www.cnblogs.com/zy7y/p/13448102.html
  2. 弊端,需要有个服务器或者一直不断电的工作机

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions