def test_036_api_78dk_platform_om_bd_replaceBdInfoMerchant(self): """ BD替换 :return: """ merchant_uuid = loginAction.global_dict.get('merchantUuid') merchantuuids = [merchant_uuid] WebAction.test_api_78dk_platform_om_bd_replaceBdInfoMerchant( merchantuuids=merchantuuids, newddinfouuid=bdinfouuid1, oldddinfouuid=bdinfouuid)
def test_081_api_78dk_platform_tm_operate_downOperationalCheck_pass(self): """ Time :2019-08-13 author : 闫红 desc :运营列表导出-v1.4.0,导出通过的列表 """ WebAction.test_api_78dk_platform_tm_operate_downOperationalCheck( begindate='', enddate='', name='', phone='', state='pass', uuid=contract_uuid)
def test_033_api_78dk_platform_tm_telephone_addTelephoneCheckInfos(self): """ 批量添加电核资料(3) :return: """ WebAction.test_api_78dk_platform_tm_telephone_addTelephoneCheckInfos( answer='答案', contractuuid=contract_uuid, groupname='', question='', risktype='', state='', telephonecheckfeedbackuuid='', groupsort='', questionsort='')
def test_38_api_78dk_platform_cm_base_business_updateBusinessInfor(self): """ 编辑业务机构 :return: """ res = WebAction.test_api_78dk_platform_cm_base_business_updateBusinessInfor( businessaddress='天府软件园', businessaddressgpsloction='天府软件园GPS地址', businessaddresszipcode='000000', businesshoursendtime='18:30', businesshoursstarttime='08:30', businessinformationuuid=businnessid, businessregistrationnumber='443534534543', channelormerchantuuid=channelid, documentaddress='天府软件园', email=email, organizationcode='567657675765', socialunifiedcreditcode='34534543534', storerentalendtime='2019-01-12', storerentalstarttime='2018-01-12', taxregistrationnumber='34543543543', documentprovince=510000, documentcity=510100, documentregion=510104, documentprovincename='', documentcityname='', documentregionname='', businessprovince=510000, businesscity=510100, businessregion=510104, businessprovincename='', businesscityname='', businessregionname='') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_001_api_78dk_platform_mm_base_saveMerchant(self): """ 新增商户基本信息 :return: """ channelid = loginAction.global_dict.get('channelid') res = json.loads( WebAction.test_api_78dk_platform_mm_base_saveMerchant( note='备注', name=merchantname, parentmerchantuuid='', shortname=merchantname + '商户简称', channeluuid=channelid, industryfirst=0, city=0, industrysecond=0, province=0, repaymentmax=1000, repaymentproportion=0.1)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功') Assertion.verityContain(res['data'], 'merchantUuid') global merchantUuid_del merchantUuid_del = res['data']['merchantUuid'] loginAction.global_dict.set( merchantUuid_del=res['data']['merchantUuid'])
def test_022_api_78dk_platform_tm_incoming_templateList_two(self): """ Time :2019-06-05 author : 罗林 desc : 模板查询列表 """ rs = WebAction.test_api_78dk_platform_tm_incoming_templateList( name=del_template_name, pagecurrent=1, pagesize=10) Assertion.verityNotNone(json.loads(rs)['data']) Assertion.verityContain(json.loads(rs)['data'], 'pageCurrent') Assertion.verityContain(json.loads(rs)['data'], 'dataList') Assertion.verityContain(json.loads(rs)['data'], 'pageSize') Assertion.verityNotNone(json.loads(rs)['data']['dataList']) Assertion.verityContain(json.loads(rs)['data']['dataList'], 'created') Assertion.verityContain( json.loads(rs)['data']['dataList'], 'productTemplateUuid') Assertion.verity( json.loads(rs)['data']['dataList'][0]['templateName'], del_template_name) Assertion.verity( json.loads(rs)['data']['dataList'][0]['templateType'], 'template_type_incoming_parts') Assertion.verity( json.loads(rs)['data']['dataList'][0]['productTemplateUuid'], del_template_id)
def test_054_api_78dk_platform_prompt_urge_data_list_part_mobile_error( self): """ Time :2019-09-29 author : 闫红 desc :逾期用户列表v1.5.2,手机号号错误 """ # mobile = MD.number(22) res = json.loads( WebAction.test_api_78dk_platform_prompt_urge_overdue_user( idcard='', loandatebegin='', loandateend='', name='', overduedaybegin='', overduedayend='', overduestage='', mobile=MD.number(22), repaymentdatebegin='', repaymentdateend='', urgeuuid=userUuid, currentpage=1, currenturge='yes', pagesize=10, totalpage=100, merchantname='')) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_052_api_78dk_platform_prompt_urge_data_list_part_unknown(self): """ Time :2019-09-29 author : 闫红 desc :逾期用户列表v1.5.2,查询该催收员所负责的所有逾期用户列表,账单状态未知 """ res = json.loads( WebAction.test_api_78dk_platform_prompt_urge_overdue_user( idcard='', loandatebegin='', loandateend='', name='', overduedaybegin='', overduedayend='', overduestage='', mobile='', repaymentdatebegin='', repaymentdateend='', urgeuuid=-1, currentpage=1, currenturge='yes', pagesize=10, totalpage=100, merchantname='')) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_002_api_78dk_platform_urge_member_viewSystemMembers(self): """ Time :2019-09-27 author : 闫红 desc :查询可添加为催收人员的员工_v1.5.2 """ res = json.loads( WebAction.test_api_78dk_platform_urge_user_viewSystemMembers()) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功') print(res) global userUuid, userName, userPhone, userEmail user_uuid = user_name = user_phone = '' for data in res['data']: if data['userEmail'] == userEmail: user_uuid = data['userUuid'] user_name = data['userName'] user_phone = data['userPhone'] if flag: userUuid = user_uuid userName = user_name userPhone = user_phone else: userUuid = platformUserProfileUuid userName = name userPhone = mobile loginAction.global_dict.set(userUuid=userUuid)
def test_001_api_78dk_platform_urge_collectionPersonnelList_null(self): """ Time :2019-09-27 author : 闫红 desc :催收人员管理列表-搜索-v1.5.2,搜索分案状态为空的所有人员 """ res = json.loads( WebAction.test_api_78dk_platform_urge_user_collectionPersonnelList( divisionstate='', email='', mobile='', name='', pagesize=100, pagecurrent=1)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功') global mobile, name, platformUserProfileUuid, flag, userEmail userEmail = loginAction.super_email flag = True try: datalist = res['data']['dataList'] except: datalist = [] for data in datalist: if data['email'] == userEmail: mobile = data['mobile'] name = data['name'] platformUserProfileUuid = data['platformUserProfileUuid'] flag = False
def test_072_api_78dk_platform_tm_contractDetail(self): """ author : 罗林 desc : 订单详情--美佳v1.0.4重构接口 """ res = WebAction.test_api_78dk_platform_tm_contractDetail( contractuuid='', process='') Assertion.verity(json.loads(res)['code'], '20000')
def test_082_api_78dk_platform_lm_loandownLimit(self): """ 订单还款信息(v1.0.4) :return: """ res = json.loads( WebAction.test_api_78dk_platform_lm_loandownLimit(contractuuid='')) Assertion.verity(res['code'], '20000')
def test_005_api_78dk_platform_sys_user_viewSystemUser_none(self): """ 查询用户 :return: """ res2 = WebAction.test_api_78dk_platform_sys_user_viewSystemUser('') Assertion.verity(json.loads(res2)['code'], '20000') Assertion.verity(json.loads(res2)['msg'], '您提交的参数异常')
def test_037_api_78dk_platform_common_findQiniuToken_error(self): """ 获取七牛tocken :return: """ res = WebAction.test_api_78dk_platform_common_findQiniuToken('123') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_056_api_78dk_platform_lm_viewLoanDetil(self): """ 查看放款详情 :return: """ res = WebAction.test_api_78dk_platform_lm_viewLoanDetil(contract_uuid) # Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '20000')
def test_08_api_78dk_platform_fund_fundSide_viewFundSide_error(self): """ 查询资方 :return: """ res = WebAction.test_api_78dk_platform_fund_fundSide_viewFundSide('') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '您提交的参数异常')
def test_051_api_78dk_platform_lm_viewContract(self): """ 合同信息 :return: """ res = WebAction.test_api_78dk_platform_lm_viewContract(contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_013_api_78dk_platform_tm_first_viewContractImages(self): """ 审核详情-影像资料(新) :return: """ res = WebAction.test_api_78dk_platform_tm_first_viewContractImages( contractuuid=contract_uuid) # Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '20000')
def test_048_api_78dk_bm_viewUserBill(self): """ 个人账单 :return: """ res = WebAction.test_api_78dk_bm_viewUserBill( contractuuid=contract_uuid, pagecurrent=1, pagesize=10) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_045_api_78dk_platform_tm_after_viewReportContract(self): """ 查询报告内容 :return: """ res = WebAction.test_api_78dk_platform_tm_after_viewReportContract( contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_046_api_78dk_platform_tm_after_viewContractTongDuns(self): """ 查询贷后所用同盾报告列表 :return: """ res = WebAction.test_api_78dk_platform_tm_after_viewContractTongDuns( contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_003_api_78dk_platform_tm_first_viewFirstCheckContract_fail(self): """ 初审信息查询 初审 不通过 :return: """ res = WebAction.test_api_78dk_platform_tm_first_viewFirstCheckContract( contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_043_api_78dk_platform_tm_final_viewFinalCheckContract_pass(self): """ 终审信息查询 终审通过 :return: """ res = WebAction.test_api_78dk_platform_tm_final_viewFinalCheckContract( contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_034_api_78dk_platform_tm_telephone_deleteTelephoneCheckInfo(self): """ 删除电核资料(3) :return: """ res = WebAction.test_api_78dk_platform_tm_telephone_deleteTelephoneCheckInfo( uid=contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_035_api_78dk_platform_tm_final_viewFDDInfo(self): """ 法大大信息查询 :return: """ res = WebAction.test_api_78dk_platform_tm_final_viewFDDInfo( contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_012_api_78dk_platform_tm_first_viewMxInfo(self): """ 查询魔蝎报告 :return: """ res = WebAction.test_api_78dk_platform_tm_first_viewMxInfo( contractuuid=contract_uuid, type='1') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '通过合同UUID查询不到魔蝎数据!')
def test_020_api_78dk_platform_tm_first_findAuditCommentList(self): """ 查询评论列表 :return: """ res = WebAction.test_api_78dk_platform_tm_first_findAuditCommentList() # pagesize=10, pagecurrent=1, contractuuid=contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_019_api_78dk_platform_tm_first_delAuditComment(self): """ 删除一条评论 :return: """ res = WebAction.test_api_78dk_platform_tm_first_delAuditComment( delAuditCommentUuid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_015_api_78dk_platform_tm_first_selectCanAuditCheck(self): """ 是否有权限审核 :return: """ res = WebAction.test_api_78dk_platform_tm_first_selectCanAuditCheck( uid=contract_uuid, checktype='audit_check_first') Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_014_api_78dk_platform_tm_first_viewImageDataConfig_earnest(self): """ 查询影像列表 定金分期 :return: """ res = WebAction.test_api_78dk_platform_tm_first_viewImageDataConfig( subdivisiontype='subdivision_type_earnest_installment') Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')