def test_018_ui_user_getUserInfo_null(self): """ Time :20120-04-10 author : 闫红 desc :用户信息,传入空 """ res = json.loads(Creditpay_urAction.test_ui_user_getUserInfo(userid='')) Assertion.verity(res['code'], '20000')
def test_021_ui_user_getUserInfo_not_exist(self): """ Time :20120-04-10 author : 闫红 desc :用户信息,userid不存在 """ userid = -1 res = json.loads(Creditpay_urAction.test_ui_user_getUserInfo(userid=userid)) Assertion.verity(res['code'], '20000')
def test_020_ui_user_getUserInfo_error(self): """ Time :20120-04-10 author : 闫红 desc :用户信息,userid格式不正确 """ userid = MockData.words_cn(3) res = json.loads(Creditpay_urAction.test_ui_user_getUserInfo(userid=userid)) Assertion.verity(res['code'], '20000')
def test_019_ui_user_getUserInfo_overlong(self): """ Time :20120-04-10 author : 闫红 desc :用户信息,userid超长 """ userid = MockData.number(256) res = json.loads(Creditpay_urAction.test_ui_user_getUserInfo(userid=userid)) Assertion.verity(res['code'], '20000')
def test_006_test_ui_user_findUserBill_SHUSONG(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,筛选出SHUSONG阶段逾期用户数据 """ res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='', phone='', realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='SHUSONG', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_013_ui_user_findUserBill_phone_not_exist(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,电话不存在 """ res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='', phone=phone, realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_007_ui_user_findUserBill_err_carno(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,身份证号错误 """ carno = '123' res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno=carno, loantimebegin='', loantimeend='', phone='', realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_017_ui_user_findUserBill_phone(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,电话输入座机 """ phone = '010-'+MockData.words_cn(9) res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='', phone=phone, realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_015_ui_user_findUserBill_phone_not_startwith_1(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,电话传入非1开头的11位数 """ phone = int('2')+MockData.number(10) res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='', phone=phone, realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_011_ui_user_findUserBill_name_overlong(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,姓名超长 """ name = MockData.words_cn(256) res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='', phone='', realname=name, shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')