摘要: 1.清空历史数据 --clean-alluredir pytest.main(['-s','-q','--alluredir','./report/allure_raw','--clean-alluredir']) #第一种方式 直接启动服务打开 os.popen('allure serve rep 阅读全文
posted @ 2020-06-15 23:44 躺云飘 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:ids 1.参数化(pytest.mark.parametrize) # test_a.py import pytest import allure def login(username, password): '''登录''' print("输入账号:%s" % username) p 阅读全文
posted @ 2020-06-15 23:30 躺云飘 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 1.方式一: 测试用例中with allure.step(): # common_fucntion.py import allure import pytest ''' 流程性的用例,添加测试步骤,让用例更清晰 用例步骤:1.登陆, 2.浏览商品 3.添加购物车 4.生成订单 5.支付成功 ''' 阅读全文
posted @ 2020-06-15 18:22 躺云飘 阅读(5456) 评论(0) 推荐(0) 编辑
摘要: 1.allure用例描述 包含:epic,feature, story, title, testcase, issue, description, step, serverity, link, attachment 2.实例应用 import pytest import allure @pytest 阅读全文
posted @ 2020-06-15 17:13 躺云飘 阅读(944) 评论(0) 推荐(0) 编辑