myuser_information.py 512 B

12345678910111213141516
  1. from hytest import *
  2. from lib.wxapi import apimgr
  3. class c1:
  4. #测试用例名称
  5. name='我的用户信息'
  6. #测试步骤
  7. def teststeps(self):
  8. INFO('测试步骤')
  9. STEP(1,'打印接口返回值') #会出现在测试报告中
  10. r = apimgr.myuser_information()
  11. res = r.json()
  12. INFO(res)
  13. actural = res['error_code']
  14. STEP(2,'第二步设置检查点')
  15. #设置检查点
  16. CHECK_POINT('检查app登录接口是否正常',actural == 0)