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