12345678910111213141516 |
- from hytest import *
- from lib.wxapi import apimgr
- class c1:
- #测试用例名称
- name='监控操作'
- #测试步骤
- def teststeps(self):
- INFO('测试步骤')
- STEP(1, '第一步调用函数')
- res = apimgr.monitor_operate()
- r = res.json()
- INFO(r)
- actural = r['data']['status']
- STEP(2, '第二步设置检查点')
- # 设置检查点
- CHECK_POINT('检查监控操作接口是否正常', actural >= 0)
|