接口自动化学习

1、pytest要生成allure可以解析的测试结果文件

①装pytest的allure插件。

pip install allure-pytest

 ②运行用例的时候生成结果文件:

pytest --allure=相对于rootdir的目录

 ③使用allure的命令生成报告:跳转到rootdir下,运行

allure serve 文件名

 

posted @ 2023-06-13 21:59  又重新开始了  阅读(7)  评论(0)    收藏  举报