摘要: 一个参数a,依次传入值1,2,3,用列表传值 import pytest @pytest.mark.parametrize('a',[1,2,3]) def testauto(a): assert a==3 两个参数a,b,用元祖传值 import pytest @pytest.mark.param 阅读全文
posted @ 2021-05-13 16:39 七亿星空 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 使用pytest框架前需要安装两个库 pip install pytest pip install pytest-html 原生态报告 (可执行pytest test_case.py -s --html=report.html 就会在代码同级目录下生成report.html报告,其中-s是把打印的内 阅读全文
posted @ 2021-05-13 15:21 七亿星空 阅读(140) 评论(0) 推荐(0) 编辑