|
@@ -2,16 +2,17 @@ from hytest import *
|
|
|
from lib.webapi import apimgr
|
|
|
|
|
|
class c1:
|
|
|
- name = 'app新用户报表提交/跳过'
|
|
|
+ name = 'app新用户报表提交'
|
|
|
def teststeps(self):
|
|
|
INFO('测试步骤')
|
|
|
STEP(1, '第一步调用函数')
|
|
|
res=apimgr.app_new_uer_sales()
|
|
|
- r = res.json()
|
|
|
- INFO(r)
|
|
|
- actural=r['error_code']
|
|
|
- actural1=r['error_msg']
|
|
|
- # INFO(length)
|
|
|
+ code=res.status_code
|
|
|
+ # r = res.json()
|
|
|
+ # INFO(r)
|
|
|
+ # actural=r['error_code']
|
|
|
+ # actural1=r['error_msg']
|
|
|
+ # # INFO(length)
|
|
|
STEP(2, '第二步设置检查点')
|
|
|
# 设置检查点
|
|
|
- CHECK_POINT('检查用户中台接口是否正常', actural == 0 and actural1 == "保存成功")
|
|
|
+ CHECK_POINT('检查用户中台接口是否正常', code==200)
|