@@ -4,9 +4,10 @@ from lib.webapi import apimgr
class c1:
name = '我的订单'
def teststeps(self):
+ INFO('测试步骤')
+ STEP(1, '第一步调用函数')
res=apimgr.get_myOrder()
- # r = res.json()
actural=res.json()
-
+ STEP(2, '第二步设置检查点')
# 设置检查点
- CHECK_POINT('检查我的订单接口是否正常', actural['count'] >= 0 )
+ CHECK_POINT('检查我的订单接口是否正常',actural['count'] >=0)
@@ -4,10 +4,13 @@ from lib.webapi import apimgr
name = '用户中台菜单'
res=apimgr.get_userCenter()
r = res.json()
actural=r['error_code']
length=len(r['data']['menuList'])
# INFO(length)
CHECK_POINT('检查用户中台接口是否正常', length >1 and actural==0)