Beispiel #1
0
 def test_064_api_78dk_platform_tm_first_viewFirstCheckContract_id_is_None(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 初审信息查询(新),合同id为None
     """
     res = WebAction.test_api_78dk_platform_tm_first_viewFirstCheckContract(uid=None)
     Assertion.verityContain(json.loads(res)['msg'], '系统发生内部异常')
     Assertion.verity(json.loads(res)['code'], '20000')
Beispiel #2
0
 def test_021_api_78dk_platform_sa_querySaLog_uuid_none(self):
     """
     author     : 罗林
     desc       : SA操作日志,UUID为空
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_sa_querySaLog(sa_uuid=''))
     Assertion.verityContain(res['msg'], 'SA记录uuid不能为空')
     Assertion.verity(res['code'], 'S0006')
Beispiel #3
0
 def test_014_api_78dk_platform_mm_examine_createTemporaryCode(self):
     """
     Time       :2019-08-12
     author     : 闫红
     desc       : 生成临时编码-v1.4
     """
     res = WebAction.test_api_78dk_platform_mm_examine_createTemporaryCode(
         uid=merchantUuid)
     Assertion.verity(json.loads(res)['code'], '10000')
Beispiel #4
0
 def test_02_api_78dk_platform_fund_fundSide_saveFundSide_256name(self):
     """
     添加资方 ,name为256
     :return:
     """
     res = WebAction.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_033_common_findContactInfo_none(self):
     """
     author     : 罗林
     desc       : 查询亲属联系人信息-美佳v1.0.0
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_common_findContactInfo(''))
     Assertion.verity(res['code'], '20000')
     Assertion.verityContain(res['msg'], 'ContractUuid不能为空')
Beispiel #6
0
 def test_025_api_78dk_platform_tm_incoming_delTemplate(self):
     """
     Time       :2019-06-05
     author     : 罗林
     desc       : 删除进件模板
     """
     rs = WebAction.test_api_78dk_platform_tm_incoming_delTemplate(producttemplateuuid=del_template_id)
     Assertion.verity(json.loads(rs)['code'], "10000")
     Assertion.verity(json.loads(rs)['msg'], "成功")
Beispiel #7
0
 def test_01_api_78dk_platform_fund_fundSide_saveFundSide_is_none(self):
     """
     添加资方 ,name为空
     :return:
     """
     res = WebAction.test_api_78dk_platform_fund_fundSide_saveFundSide(
         name='', state='enabled')
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], 'name不能为空!')
Beispiel #8
0
 def test_014_api_78dk_platform_sys_user_saveSystemUser_name_not_exits(self):
     """
     合同列表查询(申请列表) 名称不存在
     :return:
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_om_contract_viewContracts(
             pagecurrent=1, orderstate="", enddate='', begindate='', pagesize=10, name=MockData.words_cn(10)))
     Assertion.verity(res['code'], '20000')
Beispiel #9
0
 def test_015_api_78dk_platform_om_contract_viewFDDInfo(self):
     """
     法大大信息查询
     :return:
     """
     global contract_uuid
     contract_uuid = loginAction.global_dict.get('contract_uuid')
     res = json.loads(WebAction.test_api_78dk_platform_om_contract_viewFDDInfo(uid=contract_uuid))
     Assertion.verity(res['code'], '20000')
Beispiel #10
0
 def test_005_api_78dk_platform_tm_first_firstCheck_cancel(self):
     """
     初审  取消
     """
     xqkj_query.update_contract_machine_first_check(contract_uuid)
     res = WebAction.test_api_78dk_platform_tm_first_firstCheck(
         uuid=contract_uuid, message='初审  取消', checkstate='cancel', firstchecksuggest=10000)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
Beispiel #11
0
 def test_013_api_78dk_platform_sys_user_saveSystemUser_name(self):
     """
     合同列表查询(申请列表) 按名称查询
     :return:
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_om_contract_viewContracts(
             pagecurrent=1, orderstate="", enddate='', begindate='', pagesize=10, name=loginAction.sign))
     Assertion.verity(res['code'], '20000')
Beispiel #12
0
 def test_071_api_78dk_platform_tm_first_businessbillinginformation_contractuuid_is_null(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 商户结算信息查询接口 - V1.3 新增,contractuuid为空
     """
     res = WebAction.test_api_78dk_platform_tm_first_businessbillinginformation(contractuuid='')
     Assertion.verityContain(json.loads(res)['msg'], '参数异常')
     Assertion.verity(json.loads(res)['code'], '20000')
Beispiel #13
0
 def test_070_api_78dk_platform_tm_first_businessbillinginformation_overlong(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 商户结算信息查询接口 - V1.3 新增,contractuuid超长
     """
     res = WebAction.test_api_78dk_platform_tm_first_businessbillinginformation(contractuuid=MD.number(256))
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
Beispiel #14
0
 def test_069_api_78dk_platform_tm_first_businessbillinginformation_not_exist(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 商户结算信息查询接口 - V1.3 新增,contractuuid不存在
     """
     res = WebAction.test_api_78dk_platform_tm_first_businessbillinginformation(contractuuid=-1)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
Beispiel #15
0
 def test_019_api_78dk_platform_tm_incoming_delTemplate_none(self):
     """
     Time       :2019-06-05
     author     : 罗林
     desc       : 删除进件模板
     """
     rs = WebAction.test_api_78dk_platform_tm_incoming_delTemplate(producttemplateuuid='')
     Assertion.verity(json.loads(rs)['code'], "20000")
     Assertion.verity(json.loads(rs)['msg'], "productTemplateUuid 不能为空!")
Beispiel #16
0
 def test_027_api_78dk_platform_om_trans_findTransLogList_all(self):
     """
     交易流水列表  全部
     :return:
     """
     res = json.loads(WebAction.test_api_78dk_platform_om_trans_findTransLogList(
         pagesize=10, pagecurrent=1, enddate='', transstate='', begindate='', searchwhere='', transtype=''))
     Assertion.verity(res['code'], '10000')
     Assertion.verity(res['msg'], '成功')
Beispiel #17
0
 def test_024_api_78dk_platform_tm_incoming_delTemplate_not_exits(self):
     """
     Time       :2019-06-05
     author     : 罗林
     desc       : 删除进件模板
     """
     rs = WebAction.test_api_78dk_platform_tm_incoming_delTemplate(producttemplateuuid=fake.ean8())
     Assertion.verity(json.loads(rs)['code'], "20000")
     Assertion.verity(json.loads(rs)['msg'], "productTemplateUuid 不合法!")
Beispiel #18
0
 def test_068_api_78dk_platform_om_repayment_findRepaymentDetil(self):
     """
     还款详情
     :return:
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_om_repayment_findRepaymentDetil(userbilluuid=contract_uuid))
     Assertion.verity(res['code'], '10000')
     Assertion.verity(res['msg'], '成功')
Beispiel #19
0
 def test_10_api_78dk_platform_fund_fundSide_updateFundSide(self):
     """
     编辑资方
     :return:
     """
     res = WebAction.test_api_78dk_platform_fund_fundSide_updateFundSide(
         name=FundSidename, fundsideuuid=fundside_uuid, state='enabled')
     Assertion.verity(json.loads(res)['code'], '10000')
     Assertion.verity(json.loads(res)['msg'], '成功')
Beispiel #20
0
 def test_072_api_78dk_platform_om_repayment_addRepayUnderLineApply_actualamt_none(self):
     """
     添加 手动还款申请
     :return:
     """
     res = json.loads(WebAction.test_api_78dk_platform_om_repayment_addRepayUnderLineApply(
         actualamt='', shouldrepayamt=1000, userbilluuid='', actualrepaydate='', picturelist='', remarks=''))
     Assertion.verity(res['code'], '20000')
     Assertion.verity(res['msg'], '还款金额不能小于等于0!')
Beispiel #21
0
 def test_20_api_78dk_platform_fund_fundPackage_viewFundPackage_error(self):
     """
     查询资金包
     :return:
     """
     res = WebAction.test_api_78dk_platform_fund_fundPackage_viewFundPackage(
         '')
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], '您提交的参数异常')
Beispiel #22
0
 def test_074_api_78dk_platform_om_repayment_downRepaymentList(self):
     """
     Time       :2019-08-13
     author     : 闫红
     desc       :还款列表导出-v1.4.0,导出待审核的列表
     """
     res = WebAction.test_api_78dk_platform_om_repayment_downRepaymentList(applyoptname='', auditoptname='',
           auditstate='audit_state_all', contractnumber='', lastpaydatebegintime='', lastpaydateendtime='',
           overduestate='overdue_state_all', paystate='pay_state_all', usermobile='', username='')
Beispiel #23
0
 def test_03_api_78dk_platform_fund_fundSide_saveFundSide(self):
     """
     添加资方
     :return:
     """
     res = WebAction.test_api_78dk_platform_fund_fundSide_saveFundSide(
         name=FundSidename, state='enabled')
     Assertion.verity(json.loads(res)['code'], '10000')
     Assertion.verity(json.loads(res)['msg'], '成功')
Beispiel #24
0
 def test_007_api_78dk_platform_sys_user_saveSystemUser_order_first_check_fail(self):
     """
     合同列表查询(申请列表) 初审拒绝
     :return:
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_om_contract_viewContracts(
             pagecurrent=1, orderstate='order_first_check_fail', enddate='', begindate='', pagesize=10, name=''))
     Assertion.verity(res['code'], '20000')
 def test_047_tm_contract_repaymentPlan_uid_not_exits(self):
     """
     author     : 罗林
     desc       : 还款计划(v1.0.2)
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_tm_contract_repaymentPlan(uid=-1))
     Assertion.verity(res['code'], '20000')
     Assertion.verity(res['msg'], '系统发生内部异常,请稍候再试')
Beispiel #26
0
 def test_012_api_78dk_platform_tm_incoming_templateDetails_none(self):
     """
     Time       :2019-06-05
     author     : 罗林
     desc       : 模板详情查询
     """
     rs = WebAction.test_api_78dk_platform_tm_incoming_templateDetails('')
     Assertion.verity(json.loads(rs)['code'], "20000")
     Assertion.verity(json.loads(rs)['msg'], "ProductTemplateUuid 不能为空!")
Beispiel #27
0
 def test_022_api_78dk_platform_sa_querySaLog(self):
     """
     author     : 罗林
     desc       : SA操作日志
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_sa_querySaLog(sa_uuid=saUuid))
     Assertion.verityContain(res['msg'], '成功')
     Assertion.verity(res['code'], '10000')
Beispiel #28
0
 def test_013_api_78dk_platform_tm_incoming_templateDetails_not_exits(self):
     """
     Time       :2019-06-05
     author     : 罗林
     desc       : 模板详情查询
     """
     rs = WebAction.test_api_78dk_platform_tm_incoming_templateDetails(fake.ean8())
     Assertion.verity(json.loads(rs)['code'], "20000")
     Assertion.verity(json.loads(rs)['msg'], "ProductTemplateUuid 不合法!")
Beispiel #29
0
 def test_021_api_78dk_platform_mm_base_bd_listDbLogs_not_exist(self):
     """
     Time       :2019-08-12
     author     : 闫红
     desc       : 查询商户业BD 操作日志-v1.4,商户不存在
     """
     res = WebAction.test_api_78dk_platform_mm_base_bd_listDbLogs(uid=-1)
     Assertion.verity(json.loads(res)['code'], '10000')
     Assertion.verity(json.loads(res)['msg'], '成功')
Beispiel #30
0
 def test_063_api_78dk_platform_tm_first_viewFirstCheckContract_id_is_null(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 初审信息查询(新),合同id为空
     """
     res = WebAction.test_api_78dk_platform_tm_first_viewFirstCheckContract(uid='')
     Assertion.verityContain(json.loads(res)['msg'], 'ContractUuid不能为空!')
     Assertion.verity(json.loads(res)['code'], '20000')