def test_031_api_mobile_get_result(self): """ Time :2019-06-19 author : 罗林 desc :获取运营商采集数据接口 (放在登录之后) """ rs1 = CrawleroperatorAction.test_api_mobile_get_result(reqid=reqid, token=token) Assertion.verity(json.loads(rs1)['code'], 1)
def test_035_api_mobile_get_result_token_none(self): """ Time :2019-06-19 author : 罗林 desc :获取运营商采集数据接口 (放在登录之后) """ rs1 = CrawleroperatorAction.test_api_mobile_get_result(reqid=reqid, token='') Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'token不能为空')
def test_032_api_mobile_get_result_reqid_error(self): """ Time :2019-06-19 author : 罗林 desc :获取运营商采集数据接口 (放在登录之后) """ rs1 = CrawleroperatorAction.test_api_mobile_get_result(reqid=reqid + '1', token=token) Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], '不存在该reqId') Assertion.verityNone(json.loads(rs1)['data'])