web自动化中的pytest-allure报告

1、安装allure

  1、下载allure.zip

    下载地址:allure-github:https://github.com/allure-framework/allure2/tags

  2、解压到本地目录、配置allure.bat的环境变量ALLURE_HOME;

    在命令行中运行allure,确认环境变量配置成功。到bin

2、pytest插件安装  

  命令 : pip install allure-pytest

3、pytest生成allure测试报告的命令参数

  命令:--alluredir=/xxx/my_allure_results

4、查看allure的测试报告命令

  allure serve allure报告目录

扫描二维码关注公众号,回复: 11150257 查看本文章

allure文档:https://docs.qameta.io/allure/

猜你喜欢

转载自www.cnblogs.com/wsk1988/p/12788139.html
今日推荐