Beispiel #1
0
 def test_030_api_78dk_app_process_saveUserPlaceOrderGps_lat_lon_is_overlong(self):
     """
     Time       :2019-08-14
     author     : 闫红
     desc       : 保存位置信息V1.4.0,gpsinfolat,gpsinfolon超长
     """
     res = AppAction.test_api_78dk_app_process_saveUserPlaceOrderGps(gpsaddress=gpsaddress, gpscity=gpscity,
         gpsdetail=gpsdetail, gpsinfolat=MD.words_en(256), gpsinfolon=MD.words_en(256), gpsprovince=gpsprovince,
         gpsregion=gpsregion)
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], '系统繁忙,请稍候再试')
 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_039_api_78dk_sht__store_modifystoresasic_storeuuid_error(self):
     """
     修改门店基本信息:修改门店名称
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2019-08-08',
             storename=store_name,
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid=MockData.wordAndNum(20),
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='hxhhxhchchhchchcjcjj',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['msg'], '门店名重复!')
     Assertion.verity(res['code'], 'S0006')
 def test_021_api_78dk_sht__store_modifystorebasic_19idcardnumber(self):
     """
     新增门店基本信息:信息正确
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2019-08-08',
             storename=store_name,
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='hxhhxhchchhchchcjcjj',
             storeprovince='河北省',
             idcardnumber=MockData.strNumber(19),
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['msg'], '身份证格式错误')
     Assertion.verity(res['code'], 'S0006')
 def test_025_api_78dk_sht_store_modifystorebasic_storeprovincecode_none(
         self):
     """
     新增门店基本信息:
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='',
             leasetimebegin='2019-08-08',
             storename='门店名字' + MockData.words_cn(2),
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='123',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['code'], '20000')
     Assertion.verity(res['msg'], '数据完整性错误')
 def test_005_backstage_system_add(self):
     """
     Time       :2019-07-15
     author     : 闫红
     desc       : 新增系统接口 (各项均填写正常值)
     """
     sys_name = '系统' + fake.word() + loginAction.sign
     sys_host = 'test.' + MD.words_en_lower(
         3) + loginAction.sign + '78dk.com'
     sys_secret = loginAction.sign + MD.words_en_lower(7)
     sys_uuid = loginAction.sign + MD.words_en_lower(7)
     rs = PmsAction.test_backstage_system_add(businesssystemuuid=sys_uuid,
                                              host=sys_host,
                                              name=sys_name,
                                              secret=sys_secret)
     Assertion.verity(json.loads(rs)['code'], 10000)
     Assertion.verity(json.loads(rs)['msg'], "SUCCESS")
Beispiel #7
0
 def test_038_app_bill_getMyBill_contractuuid_not_exites(self):
     """
     desc       : 我的账单v1.0.0
     author     : 罗林
     """
     res = AppAction.test_api_78dk_app_bill_getMyBill(
         billdate='1574956800', contractuuid=MD.uuid_random())
     Assertion.verity(json.loads(res)['code'], '10000')
Beispiel #8
0
 def test_033_api_78dk_app_bill_PaymentStatus_not_exits(self):
     """
     desc       : 还款状态 v1.5.0, 账单Uuid不存在
     author     : 罗林
     """
     res = AppAction.test_api_78dk_app_bill_paymentStatus(
         contractuuid=MD.wordAndNum(20))
     Assertion.verity(json.loads(res)['code'], '10000')
Beispiel #9
0
 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_063_api_78dk_platform_tm_machine_resultMachine_overlong(self):
     """
     Time       :2019-07-23
     author     : 闫红
     desc       : 机审详情,合同uuid为超长
     """
     res = PlatformAction.test_api_78dk_platform_tm_machine_resultMachine(uuid=MD.words_en_lower(256))
     Assertion.verityContain(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
 def test_043_api_78dk_platform_tm_first_viewContractLabels_overlong(self):
     """
     Time       :2019-07-23
     author     : 闫红
     desc       : 通过合同UUID查询对应的客户标签,UUID超长
     """
     res = PlatformAction.test_api_78dk_platform_tm_first_viewContractLabels(uid=MD.words_en_lower(256))
     Assertion.verityContain(json.loads(res)['msg'], '合同uuid不合法')
     Assertion.verity(json.loads(res)['code'], '20000')
Beispiel #12
0
 def test_007_api_78dk_platform_om_bd_addBdInfo_256mobile(self):
     """
     BD新增 256 mobile
     :return:
     """
     res = PlatformAction.test_api_78dk_platform_om_bd_addBdInfo(channeluuid=channelid, email=email,
         mobile=MockData.strNumber(256), name=bd_name)
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], '手机格式不合法,')
 def test_014_api_78dk_sht_mm_base_legal_modifylegalperson_17cardnumber(self):
     """
     保存商户法人信息--异常场景-法人身份证号错误
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_base_legal_modifyLegalPerson(shfrsfzfsc='', name='法人名字',
         uuid=sht_merchantUuid, shfrsfzf='', mobile=mobile, cardnumber=MockData.strNumber(17), shfrsfzz=''))
     Assertion.verity(res['code'], 'S0006')
     Assertion.verity(res['msg'], '法人身份证格式错误')
Beispiel #14
0
 def test_011_api_78dk_platform_om_bd_addBdInfo_12mobile(self):
     """
     BD新增  12 mobile
     :return:
     """
     res = WebAction.test_api_78dk_platform_om_bd_addBdInfo(
         email=email, mobile=MockData.phone(12), name=bd_name)
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], '手机格式不合法,')
Beispiel #15
0
 def test_009_api_78dk_platform_om_bd_addBdInfo_email_error(self):
     """
     BD新增  email error
     :return:
     """
     res = WebAction.test_api_78dk_platform_om_bd_addBdInfo(
         email=MockData.words_cn(10), mobile=mobile, name=bd_name)
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], '邮箱的格式不合法,')
Beispiel #16
0
 def test_008_api_78dk_platform_om_bd_addBdInfo_256name(self):
     """
     BD新增  256 name
     :return:
     """
     res = WebAction.test_api_78dk_platform_om_bd_addBdInfo(
         email=email, mobile=mobile, name=MockData.strNumber(256))
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verityContain(json.loads(res)['msg'], 'BD新增数据出错!')
Beispiel #17
0
 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_045_api_78dk_sht_mm_base_store_querystores_error(self):
     """
     查看门店:
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_bm_queryStores(
             uuid=MockData.wordAndNum(20)))
     Assertion.verity(res['code'], '10000')
 def test_005_backstage_system_and_tenant_add(self):
     """
     Time       :2019-07-15
     author     : 闫红
     desc       : 新增系统,新增机构,为机构管理员接口准备数据
     """
     sys_name = '系统'+fake.word() + loginAction.sign
     sys_host = 'test.'+MD.words_en_lower(3)+loginAction.sign + '78dk.com'
     sys_secret = loginAction.sign+MD.words_en_lower(7)
     sys_uuid = loginAction.sign+MD.words_en_lower(7)
     rs = PmsAction.test_backstage_system_add(businesssystemuuid=sys_uuid, host=sys_host, name=sys_name,
                                              secret=sys_secret)
     Assertion.verity(json.loads(rs)['code'], 10000)
     Assertion.verity(json.loads(rs)['msg'], "SUCCESS")
     business_id = pq.get_business_id('系统')
     PmsAction.test_backstage_tenant_add(name=tenant_name, systemid=business_id)
     Assertion.verity(json.loads(rs)['code'], 10000)
     Assertion.verity(json.loads(rs)['msg'], "SUCCESS")
Beispiel #20
0
 def test_028_api_78dk_app_bill_immediateRepayment_not_exits(self):
     """
     desc       : 立刻还款V1.5.0, 账单Uuid不存在
     author     : 罗林
     """
     res = AppAction.test_api_78dk_app_bill_immediateRepayment(
         userbilluuid=MD.wordAndNum(20), userbankcarduuid='')
     Assertion.verity(json.loads(res)['code'], '20000')
     Assertion.verity(json.loads(res)['msg'], '没有账单')
Beispiel #21
0
 def test_022_api_78dk_app_common_takeGoods_overlong(self):
     """
     Time       :2019-08-13
     author     : 闫红
     desc       : 确认收货V1.4.0,运营审核前,合同uuid超长
     """
     res = AppAction.test_api_78dk_app_perCenter_takeGoods(
         contractuuid=MD.words_en_lower(256))
     Assertion.verity(json.loads(res)['code'], '20000')
 def test_010_backstage_tenant_administrator_get_system_name_and_tenant_name_overlong(self):
     """
     Time       :2019-07-16
     author     : 闫红
     desc       : 根据机构Id获取机构名称和系统名称,查询id超长
     """
     tenantid = MD.number(256)
     rs = PmsAction.test_backstage_tenant_administrator_get_system_name_and_tenant_name(tenantid)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], 'SUCCESS')
Beispiel #23
0
 def test_024_backstage_user_info_is_21(self):
     """
     Time       :2019-07-17
     author     : 闫红
     desc       : 获取用户详情,id长度21位
     """
     user_id = MD.number(21)
     rs = PmsAction.test_backstage_user_info(id=user_id)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], "SUCCESS")
 def test_014_backstage_tenant_administrator_add_overlong(self):
     """
     Time       :2019-07-16
     author     : 闫红
     desc       : 机构管理员新增,机构id超长
     """
     tenantid = MD.number(256)
     rs = PmsAction.test_backstage_tenant_administrator_add(phone=phone, name=administrator_name, email=email, tenantid=tenantid)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], 'SUCCESS')
Beispiel #25
0
 def test_026_api_78dk_app_perCenter_getTakeGoodsContent_contractuuid_overlong(
         self):
     """
     Time       :2019-08-13
     author     : 闫红
     desc       : 获取确认收货协议参数V1.40.合同uuid不存在
     """
     res = AppAction.test_api_78dk_app_perCenter_takeGoods(
         contractuuid=MD.words_en(256))
     Assertion.verity(json.loads(res)['code'], '20000')
Beispiel #26
0
 def test_018_api_78dk_app_perCenter_loanDatail_overlong(self):
     """
     Time       :2019-08-13
     author     : 闫红
     desc       : 申请详情V1.4.0,订单uuid为空
     """
     res = AppAction.test_api_78dk_app_perCenter_loanDatail(
         loanorderuuid=MD.words_en_lower(256))
     Assertion.verity(json.loads(res)['code'], 'S0003')
     Assertion.verityContain(json.loads(res)['msg'], '查无数据')
Beispiel #27
0
 def test_004_api_78dk_platform_sa_addSa_12mobile(self):
     """
     author     : 罗林
     desc       : SA新增,12位手机号
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_sa_addSa(
             email=email, mobile=MockData.phone(12), name=name))
     Assertion.verityContain(res['msg'], '手机格式不合法,')
     Assertion.verity(res['code'], '20000')
 def test_035_backstage_tenant_administrator_edit_overlong(self):
     """
     Time       :2019-07-16
     author     : 闫红
     desc       : 编辑管理员,id超长
     """
     tenant_adm_id = MD.number(256)
     rs = PmsAction.test_backstage_tenant_administrator_edit(name='编辑'+administrator_name,email=email,phone=phone,id=tenant_adm_id)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], "SUCCESS")
 def test_029_backstage_tenant_administrator_resert_password_overlong(self):
     """
     Time       :2019-07-16
     author     : 闫红
     desc       : 机构管理员密码重置,id超长
     """
     tenant_adm_id = MD.number(256)
     rs = PmsAction.test_backstage_tenant_administrator_resert_password(id=tenant_adm_id)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], 'SUCCESS')
 def test_026_backstage_tenant_administrator_change_overlong(self):
     """
     Time       :2019-07-16
     author     : 闫红
     desc       : 机构管理状态管理,id超长
     """
     tenant_adm_id = MD.number(256)
     rs = PmsAction.test_backstage_tenant_administrator_change_state(changeto='enabled',id=tenant_adm_id)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], 'SUCCESS')