entniche_push.py 518 B

123456789101112131415
  1. from hytest import *
  2. from lib.webapi import apimgr
  3. class c1:
  4. #测试用例名称
  5. name='商机管理推送记录列表'
  6. #测试步骤
  7. def teststeps(self):
  8. INFO('测试步骤')
  9. STEP(1,'第一步调用函数') #会出现在测试报告中
  10. r = apimgr.entniche_push()
  11. res = r.json()
  12. actural = res['error_code']
  13. STEP(2,'第二步设置检查点')
  14. #设置检查点
  15. CHECK_POINT('检查商机管理推送记录列表是否正常',actural ==0 )