1234567891011121314151617181920 |
- from hytest import *
- from lib.webapi import apimgr
- class c1:
- #测试用例名称
- name='app登录接口验证'
- #测试步骤
- def teststeps(self):
- INFO('测试步骤')
- STEP(1,'打印接口返回值') #会出现在测试报告中
- r = apimgr.mgr_login_app()
- res = r.json()
- INFO(res)
- actural = res['status']
- STEP(2,'第二步设置检查点')
- #设置检查点
- CHECK_POINT('检查app登录接口是否正常',actural == 1)
- #清除方法
- def teardown(self):
- INFO('用户退出app')
- apimgr.mgr_logout_app()
|