安装 Allure

下载地址:https://github.com/allure-framework/allure2/releases(链接来自于博客:https://www.cnblogs.com/come202011/p/12589441.html,如有侵权可以删除,谢谢)

1、下载完成后解压下载的安装,解压后进行配置,环境配置:

2、配置完成后在控制台(cmd)输入:allure,测试是否安装成功:

3、安装其他的一些依赖包,内容如下:

allure-pytest==2.8.36  
allure-python-commons==2.8.36  
configparser==5.0.0  
PyMySQL==0.9.3  
pytest==5.4.3  
pytest-html==2.1.1  
pytest-metadata==1.11.0  
regex==2020.11.13  
requests==2.25.1  
requests-toolbelt==0.9.1  
xlrd==1.2.0  
xlwt==1.3.0  
pyDes==2.0.1  
ruamel.yaml==0.17.10    

参考网上的建议可以建一个requirements.txt文件,把上面内容放进去,然后把txt文件放到allure目录下,运行命令行:pip install -r requirements.txt,即可全部安装。

参考到的博客有:https://www.cnblogs.com/upstudy/p/15921045.html#page_end_html,如有侵权,可以联系删除,谢谢。

posted on 2024-06-20 15:51  万能人  阅读(1)  评论(0编辑  收藏  举报

导航