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