def test_15_api_78dk_platform_fund_fundPackage_saveFundPackage_256name(self): """ 添加资金包 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount=300000, name=''.join(fake.words(nb=128)), state='enabled', fundsideuuid=fundside_uuid) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '插入资金包发生失败!')
def test_008_api_78dk_platform_mm_state_viewStateMerchantList_not_exist( self): # 查询商户状态列表 not_exist_name = '<meta http-equiv="Content-Type"content="text/html;charset=UTF-8"/>' res = PlatformAction.test_api_78dk_platform_mm_state_viewStateMerchantList( pagecurrent=1, pagesize=10, name=not_exist_name) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verityList(json.loads(res)['data']['dataList'], [])
def test_052_api_78dk_platform_mm_examine_merchanrExamine_fail(self): """ 商户审核 :return: """ res = PlatformAction.test_api_78dk_platform_mm_examine_merchanrExamine(type='pass', message='通过', uid=sht_merchantUuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_014_api_78dk_platform_mm_examine_createTemporaryCode(self): """ Time :2019-08-12 author : 闫红 desc : 生成临时编码-v1.4 """ res = PlatformAction.test_api_78dk_platform_mm_examine_createTemporaryCode( uid=merchantUuid) Assertion.verity(json.loads(res)['code'], '10000')
def test_007_api_78dk_platform_urge_member_addMemberUser_not_exist(self): """ Time :2019-09-27 author : 闫红 desc :添加一个催收人员_v1.5.2,添加不存在的人员为催收人员 """ res = json.loads(PlatformAction.test_api_78dk_platform_urge_user_addMemberUser(useruuid=-1)) Assertion.verity(res['code'], '20000') Assertion.verityContain(res['msg'], '不能添加为催收人员')
def test_038_api_78dk_platform_sys_user_deleteSystemUser(self): """ 删除用户 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_deleteSystemUser( user_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_032_api_78dk_platform_common_viewImageUrl(self): """ 获取图片url :return: """ res = PlatformAction.test_api_78dk_platform_common_viewImageUrl( qiniukey='', type='') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_022_api_78dk_platform_sys_user_login_usererror(self): """ 用户登录 账号错误 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_login( email='*****@*****.**', password='******') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '用户名或密码不正确!')
def test_023_api_78dk_platform_sys_user_login_not_privilege(self): """ 没有权限 用户登录 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_login( email=email, password='******') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '用户名或密码不正确!')
def test_016_api_78dk_platform_sys_user_viewSystemUser_dimission(self): """ 查询用户 :return: """ res2 = PlatformAction.test_api_78dk_platform_sys_user_viewSystemUser( paramsingle=user_uuid) Assertion.verity(json.loads(res2)['code'], '10000') Assertion.verity(json.loads(res2)['msg'], '成功')
def test_020_api_78dk_platform_sys_user_login(self): """ 启用 用户登录成功 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_login( email=email, password='******') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '用户名或密码不正确!')
def test_008_api_78dk_platform_sys_user_updateUserPass(self): """ 修改密码 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_updateUserPass( password='******', passwordrepeat='1', email=email, uid=user_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_02_api_78dk_platform_fund_fundSide_saveFundSide_256name(self): """ 添加资方 ,name为256 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundSide_saveFundSide(name=''.join(fake.words(nb=128)), state='enabled') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '插入资方发生失败!')
def test_16_api_78dk_platform_fund_fundPackage_saveFundPackage(self): """ 添加资金包 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount=300000, name=FundPackagename, state='enabled', fundsideuuid=fundside_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_036_api_78dk_platform_sys_user_saveSystemUser_phone_error(self): """ 新增用户 手机号格式错误 11 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_saveSystemUser( email=email4, mobile='43543234566', name=name4) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '手机格式不合法,')
def test_024_api_78dk_platform_sys_user_resetUserPass(self): """ 重置密码 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_resetUserPass( user_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_037_api_78dk_platform_sys_privilege_saveMenu(self): """ 保存一个菜单 :return: """ res = PlatformAction.test_api_78dk_platform_sys_privilege_saveMenu( url=address_report, platformprivilegeuuid='123', name=name_report) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_028_api_78dk_platform_sys_privilege_viewUserPrivilegeList(self): """ 查询权限 :return: """ res = PlatformAction.test_api_78dk_platform_sys_privilege_viewUserPrivilegeList( platformuseruuid=user_uuid, permissiontype='') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_031_api_78dk_platform_common_findQiniuToken_error(self): """ 获取七牛tocken :return: """ res = PlatformAction.test_api_78dk_platform_common_findQiniuToken( '123') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_029_api_78dk_platform_sys_privilege_clearUserPrivilege(self): """ 清除用户权限 :return: """ res = PlatformAction.test_api_78dk_platform_sys_privilege_clearUserPrivilege( user_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_005_api_78dk_platform_sys_user_viewSystemUser_none(self): """ 查询用户 :return: """ res2 = PlatformAction.test_api_78dk_platform_sys_user_viewSystemUser( '') Assertion.verity(json.loads(res2)['code'], '20000') Assertion.verity(json.loads(res2)['msg'], '您提交的参数异常')
def test_030_api_78dk_platform_sys_user_viewSystemUser(self): """ 清除用户权限 查询用户 :return: """ res2 = PlatformAction.test_api_78dk_platform_sys_user_viewSystemUser( user_uuid) Assertion.verity(json.loads(res2)['code'], '10000') Assertion.verity(json.loads(res2)['msg'], '成功')
def test_032_api_78dk_platform_mm_base_saveStoreBusiness_uidNONE(self): """ Time :2019-08-14 author : songchao desc :门店业务信息-正新增或修改-v1.4——uuid比为空 """ res = PlatformAction.test_api_78dk_platform_mm_base_store_saveStoreBusiness( discountpercent='', list=[], storeuuid='', workpercent='') Assertion.verity(json.loads(res)['code'], '20000')
def test_031_api_78dk_platform_sys_user_saveSystemUser_phone_exit(self): """ 新增 相同email,phone,name用户 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_saveSystemUser( email=email, name=name, mobile=phone) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '该邮箱已经使用过了')
def test_008_api_78dk_platform_urge_member_addMemberUser_is_null(self): """ Time :2019-09-27 author : 闫红 desc :添加一个催收人员_v1.5.2,useruuid为空 """ res = json.loads(PlatformAction.test_api_78dk_platform_urge_user_addMemberUser(useruuid='')) Assertion.verity(res['code'], '20000') Assertion.verityContain(res['msg'], 'uuid不能为空')
def test_032_api_78dk_platform_sys_user_saveSystemUser_mail_exit(self): """ 新增 相同phone,name用户 :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_saveSystemUser( email=email3, name=name, mobile=phone) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '邮箱【{}】已经存在!'.format(email3))
def test_014_api_78dk_platform_mm_examine_merchanrExamine_pass(self): # 商户审核pass xqkj_query.update_info('Tbl_MerchantProfile', 'audit_state="pending_review"', 'merchant_uuid="{}"'.format(merchant_uuid)) res = PlatformAction.test_api_78dk_platform_mm_examine_merchanrExamine( ispass='******', message='通过', uid=merchant_uuid) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_033_api_78dk_platform_sys_user_saveSystemUser(self): """ 新增用户不是email :return: """ res = PlatformAction.test_api_78dk_platform_sys_user_saveSystemUser( email='gggggggggg', name=name4, mobile=phone4) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '邮箱的格式不合法,')
def test_008_api_78dk_platform_om_bd_addBdInfo_256name(self): """ BD新增 256 name :return: """ res = PlatformAction.test_api_78dk_platform_om_bd_addBdInfo(channeluuid=channelid, email=email, mobile=mobile, name=MockData.strNumber(256)) Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], 'BD新增数据出错!')
def test_13_api_78dk_platform_fund_fundPackage_saveFundPackage_fundside_uuid_is_none(self): """ 添加资金包 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundPackage_saveFundPackage( amount=300000, name=FundPackagename, state='enabled', fundsideuuid='') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], 'fundSideUuid不能为空!')