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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM