Пример #1
0
 def test_010_api_mobile_get_status_token_None(self):
     """
     Time       :2019-06-19
     author     : 罗林
     desc       :获取运营商任务当前状态接口
     """
     rs1 = CrawleroperatorAction.test_api_mobile_get_status(reqid=reqid, token='')
     Assertion.verity(json.loads(rs1)['code'], 0)
     Assertion.verity(json.loads(rs1)['retMsg'], 'token不能为空')
     Assertion.verityNone(json.loads(rs1)['data'])
Пример #2
0
 def test_011_api_mobile_phone_config_token_error(self):
     """
     Time       :2019-06-19
     author     : 罗林
     desc       :账号密码登录提交接口
     """
     rs1 = CrawleroperatorAction.test_api_mobile_phone_config(reqid=reqid, token=token + '1', phone=phone)
     Assertion.verity(json.loads(rs1)['code'], 0)
     Assertion.verity(json.loads(rs1)['retMsg'], 'token错误')
     Assertion.verityNone(json.loads(rs1)['data'])
Пример #3
0
 def test_007_api_mobile_get_status_reqid_error(self):
     """
     Time       :2019-06-19
     author     : 罗林
     desc       :获取运营商任务当前状态接口
     """
     rs1 = CrawleroperatorAction.test_api_mobile_get_status(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'])