举例说明pytest.mark标记的使用?
回复可见**** Hidden Message *****
pytest.mark.smoke 冒烟用例
pytest.mark.performance性能测试用例
pytest.mark.retry失败重试
pytest.mark.skip跳过
......
学习一下 在测试用例/测试类前面加上:@pytest.mark.标签名;打标记范围:【测试用例,测试类,测试模块】
pytest.mark.smoke 冒烟用例
pytest.mark.performance性能测试用例
pytest.mark.retry失败重试
pytest.mark.skip跳过 pytest.mark.smoke 冒烟用例
pytest.mark.performance性能测试用例
pytest.mark.retry失败重试
pytest.mark.skip跳过
......
pytest.mark.smoke 冒烟用例
pytest.mark.performance性能测试用例
pytest.mark.retry失败重试
pytest.mark.skip跳过 学习学习
页:
[1]