def test_030_api_mobile_login_submit_reqid_name_None(self): """ Time :2019-06-19 author : 罗林 desc :账号密码登录提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_login_submit( reqid=reqid, token=token + '1', name='', password='******', code='', randompassword='') Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'name不能为空') Assertion.verityNone(json.loads(rs1)['data'])
def test_022_api_mobile_login_submit_reqid_not_exits(self): """ Time :2019-06-19 author : 罗林 desc :账号密码登录提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_login_submit( reqid=reqid + '1', token=token, name=phone, password='******', code='', randompassword='') Assertion.verity(json.loads(rs1)['retCode'], 1) Assertion.verity(json.loads(rs1)['retMsg'], '成功') Assertion.verity(json.loads(rs1)['data']['phaseStatus'], 'LOGIN_FAILED') Assertion.verity(json.loads(rs1)['data']['stage'], 'PREPARE') Assertion.verity(json.loads(rs1)['data']['extra']['remark'], '不存在该reqId')
def test_021_api_mobile_login_submit(self): """ Time :2019-06-19 author : 罗林 desc :账号密码登录提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_login_submit( reqid=reqid, token=token, name=phone, password=password, code='', randompassword='') Assertion.verity(json.loads(rs1)['retCode'], 1) Assertion.verity(json.loads(rs1)['retMsg'], '成功') Assertion.verity(json.loads(rs1)['data']['phaseStatus'], 'LOGIN_FAILED') Assertion.verity(json.loads(rs1)['data']['reqId'], reqid) Assertion.verity(json.loads(rs1)['data']['stage'], 'PREPARE')