advanced_search.py 570 B

12345678910111213141516171819
  1. from time import sleep
  2. from hytest import *
  3. from lib.webapi import apimgr
  4. class c2:
  5. #测试用例名称
  6. name='超前项目搜索接口'
  7. #测试步骤
  8. def teststeps(self):
  9. INFO('测试步骤')
  10. STEP(1,'第一步调用函数') #会出现在测试报告中
  11. sleep(3)
  12. res = apimgr.advanced_search()
  13. sleep(3)
  14. actural = res.json()
  15. count=actural["error_code"]
  16. STEP(2,'第二步设置检查点')
  17. #设置检查点
  18. CHECK_POINT('检查超前项目搜索接口是否正常',count == 0)