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

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

 

 

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

 

相关文章: