def test_068_api_taobao_getqrcode_token_none(self): """ desc :获取二维码, token为空 author : 罗林 """ rs1 = TbAction.test_api_taobao_getqrcode(reqid='', token='') Assertion.verity(json.loads(rs1)['code'], 403) Assertion.verity(json.loads(rs1)['m'], 'token不能为空') Assertion.verity(json.loads(rs1)['s'], 0)
def test_066_api_taobao_502getqrcode_reqid_none(self): """ desc :获取二维码 , reqid为空 author : 罗林 """ rs1 = TbAction.test_api_taobao_getqrcode(reqid='', token=token) Assertion.verity(json.loads(rs1)['code'], 502) Assertion.verity(json.loads(rs1)['m'], '系统繁忙,请稍后再试') Assertion.verity(json.loads(rs1)['s'], 0)
def test_067_api_taobao_getqrcode_token_error(self): """ desc :获取二维码, token错误 author : 罗林 """ rs1 = TbAction.test_api_taobao_getqrcode(reqid='', token=token + '1') Assertion.verity(json.loads(rs1)['code'], 501) Assertion.verity(json.loads(rs1)['m'], 'token错误') Assertion.verity(json.loads(rs1)['s'], 0)
def test_065_api_taobao_200getqrcode_reqid_none(self): """ desc :获取二维码 , reqid为空 author : 罗林 """ rs1 = TbAction.test_api_taobao_getqrcode(reqid='', token=token) Assertion.verity(json.loads(rs1)['code'], 200) Assertion.verity(json.loads(rs1)['m'], '获取二维码成功') Assertion.verity(json.loads(rs1)['s'], 1) Assertion.verityNotNone(json.loads(rs1)['data']['pic']) Assertion.verityNotNone(json.loads(rs1)['data']['reqId'])