码迷,mamicode.com
首页 > 其他好文 > 详细

allure下载

时间:2020-03-28 21:42:38      阅读:706      评论:0      收藏:0      [点我收藏+]

标签:ref   test   变量   lease   用例   pyc   error:   使用   https   

1.下载allure

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

2.配置allure系统环境变量

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

4.安装allure-pytest:

pip install allure-pytest

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

 

注意:如果安装了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下载

标签:ref   test   变量   lease   用例   pyc   error:   使用   https   

原文地址:https://www.cnblogs.com/come202011/p/12589441.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!