Exemple #1
0
 def test_021_api_taobao_verifyqrcode_token_none(self):
     """
     desc       :验证二维码是否已扫描,并获取信息  ,token为空
     author     : 罗林
     """
     rs1 = TbAction.test_api_taobao_verifyqrcode(reqid=reqid, token='')
     Assertion.verity(json.loads(rs1)['code'], 403)
     Assertion.verity(json.loads(rs1)['m'], 'token不能为空')
     Assertion.verity(json.loads(rs1)['s'], 0)
Exemple #2
0
 def test_019_api_taobao_verifyqrcode_reqid_none(self):
     """
     desc       :验证二维码是否已扫描,并获取信息 ,reqId为空
     author     : 罗林
     """
     rs1 = TbAction.test_api_taobao_verifyqrcode(reqid='', token=token)
     Assertion.verity(json.loads(rs1)['code'], 403)
     Assertion.verity(json.loads(rs1)['m'], 'reqId不能为空')
     Assertion.verity(json.loads(rs1)['s'], 0)
Exemple #3
0
 def test_017_api_taobao_302verifyqrcode(self):
     """
     desc       :验证二维码是否已扫描,并获取信息
     author     : 罗林
     """
     rs1 = TbAction.test_api_taobao_verifyqrcode(reqid=reqid, token=token)
     Assertion.verity(json.loads(rs1)['code'], 302)
     Assertion.verity(json.loads(rs1)['m'], '需要短信验证')
     Assertion.verity(json.loads(rs1)['s'], 0)
Exemple #4
0
 def test_016_api_taobao_200verifyqrcode(self):
     """
     desc       :验证二维码是否已扫描,并获取信息
     author     : 罗林
     """
     rs1 = TbAction.test_api_taobao_verifyqrcode(reqid=reqid, token=token)
     Assertion.verity(json.loads(rs1)['code'], 200)
     Assertion.verity(json.loads(rs1)['m'], '授权成功')
     Assertion.verity(json.loads(rs1)['s'], 1)
Exemple #5
0
 def test_020_api_taobao_verifyqrcode_token_error(self):
     """
     desc       :验证二维码是否已扫描,并获取信息 ,token错误
     author     : 罗林
     """
     rs1 = TbAction.test_api_taobao_verifyqrcode(reqid=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)
Exemple #6
0
 def test_018_api_taobao_verifyqrcode_reqid_error(self):
     """
     desc       :验证二维码是否已扫描,并获取信息 ,reqId错误
     author     : 罗林
     """
     rs1 = TbAction.test_api_taobao_verifyqrcode(reqid=reqid + '1',
                                                 token=token)
     Assertion.verity(json.loads(rs1)['code'], 400)
     Assertion.verity(json.loads(rs1)['m'], '不存在该会话id')
     Assertion.verity(json.loads(rs1)['s'], 0)