enterpriseSearch.py 641 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. import json
  3. from hytest import *
  4. from lib.webapi import apimgr
  5. class c5:
  6. #测试用例名称
  7. tags = ['未登录企业搜索']
  8. name = '未登录企业搜索'
  9. #测试步骤
  10. def teststeps(self):
  11. INFO('测试步骤')
  12. STEP(1,'第一步调用函数') #会出现在测试报告中
  13. r = apimgr.nologin_enterpriseSearch()
  14. response_data = json.loads(r.text)
  15. error_code = response_data["error_code"]
  16. STEP(2, '第二步设置检查点')
  17. # 设置检查点
  18. CHECK_POINT('检查未登录企业搜索是否正常', error_code == 0)