allure下载及配置

1.下载allure

https://github.com/allure-framework/allure2/releases

2.配置allure系统环境变量

3.cmd窗口验证环境变量配置是否成功

4.安装allure-pytest:

pip install allure-pytest

5.运行用例时使用allure生成报告

6.查看测试报告:

命令行输入 :allure serve 生成报告的目录

 

注意:如果安装了pytest-allure-adaptor,在pycharm使用allure时会报错:module 'pytest' has no attribute 'allure'或者AttributeError: module 'allure' has no attribute 'severity_level'

此时需要先卸载adaptor:    pip uninstall pytest-allure-adaptor

 

allure安装配置:https://www.jianshu.com/p/5735d388faa2

allure生成报告:https://www.cnblogs.com/yoyoblogs/p/11447571.html

 

posted on 2020-03-28 21:16  芦荟~lh  阅读(7695)  评论(0编辑  收藏  举报

导航