摘要: pytest.ini: [pytest] log_cli=True addopts= -s conftest.py: import pytest # 读取pytest.ini 的配置信息 返回给测试用例 @pytest.fixture() def getini(pytestconfig): retu 阅读全文
posted @ 2022-05-15 15:50 chuangzhou 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 快速入们 conftest.py: 文件名字固定写法,自定义命令行参数信息 import pytest hosts = { "dev": "http://dev.xxxx.com", "test": "http://test.xxxx.com", "uat": "http://uat.xxxx.co 阅读全文
posted @ 2022-05-15 15:20 chuangzhou 阅读(371) 评论(0) 推荐(0) 编辑