06 2022 档案

摘要:pytest标记用例失败的方法: 1.pytest.xfail(reason)标记失败,且后续代码不执行 2.pytest.mark.xfail(condition,reason=None)标记预期失败,会执行用例,如果失败,结果会显示xfail;通过会显示xpass condition=True, 阅读全文
posted @ 2022-06-28 14:37 LeeV1 阅读(331) 评论(0) 推荐(0)
摘要:@allure.epic("测试项目") @allure.feature("测试模块") @allure.story("测试添加、删除、修改") class TestDemo: @allure.title("测试用例001") @allure.description("这是用例描述") def te 阅读全文
posted @ 2022-06-27 15:08 LeeV1 阅读(203) 评论(0) 推荐(0)