python+pytest+allure测试报告,批量执行测试用例命令生成测试报告

cd  F:python_11	each01	estcase
pytest -sq testLogin.py --alluredir=../report/tmp
allure generate ../report/tmp -o ../report/report --clean
操作:双击执行api_run。bat文件就可以查看。
注意:只能在pycharm中查看index.html文件。

原文地址:https://www.cnblogs.com/fanxianhua/p/14178763.html