monitor_operate.py 480 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. res = apimgr.monitor_operate()
  11. r = res.json()
  12. INFO(r)
  13. actural = r['data']['status']
  14. STEP(2, '第二步设置检查点')
  15. # 设置检查点
  16. CHECK_POINT('检查监控操作接口是否正常', actural >= 0)