def test_041_api_78dk_platform_mm_base_addStoreBusiness_storeExamine_uploadImageRoleList(
         self):
     """
     Time       :2019-08-14
     author     : songchao
     desc       :门店影像资料上传-v1.4
     """
     key = "FjHpyILVVxjHksSyGsVKmQlnI01T"
     sysImageKeys = [
         "MDFZRSFZZM", "MDFZRSFZFM", "MDFZRSFZSC", "MDWBHJZ", "MDNBHJZ",
         "MDQTLOGO", "MDZLHT", "MDPXXY"
     ]
     images = [{
         "fileName": '1',
         "key": key,
         "storeUuid": store_uuid,
         "handleType": "add",
         "oldImageUuid": '',
         "sysImageKey": sysImageKey
     } for sysImageKey in sysImageKeys]
     res = WebAction.test_api_78dk_platform_mm_base_store_saveImagesAndChange(
         images=images)
     Assertion.verity(json.loads(res)['code'], '10000')
 def test_007_api_78dk_platform_tm_first_viewFirstCheckContracts_cancel(
         self):
     """
     初审列表查询  初审  取消
     :return:
     """
     res = json.loads(
         WebAction.test_api_78dk_platform_tm_first_viewFirstCheckContracts(
             pagesize=10,
             state='all',
             pagecurrent=1,
             name='',
             begindate='',
             contractnumber='',
             enddate='',
             lable='',
             phone='',
             username=''))
     Assertion.verity(res['msg'], '成功')
     Assertion.verity(res['code'], '10000')
     Assertion.verity(res['data']['currentPage'], 1)
     Assertion.verity(res['data']['pageSize'], 10)
     Assertion.verityContain(res['data'], 'dataList')
 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))
     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'])
Beispiel #4
0
 def test_014_api_78dk_platform_tm_incoming_templateDetails(self):
     """
     Time       :2019-06-05
     author     : 罗林
     desc       : 模板详情查询
     """
     rs = WebAction.test_api_78dk_platform_tm_incoming_templateDetails(
         productTemplateUuid1)
     Assertion.verity(json.loads(rs)['code'], "10000")
     Assertion.verity(json.loads(rs)['msg'], "成功")
     Assertion.verityNotNone(json.loads(rs)['data'])
     Assertion.verityContain(json.loads(rs)['data'], 'created')
     Assertion.verityNotNone(json.loads(rs)['data']['sysData'])
     Assertion.verityContain(json.loads(rs)['data']['sysData'], 'id')
     Assertion.verityContain(json.loads(rs)['data']['sysData'], 'parentId')
     Assertion.verityContain(json.loads(rs)['data']['sysData'], 'typeName')
     Assertion.verity(
         json.loads(rs)['data']['productTemplateUuid'],
         productTemplateUuid1)
     Assertion.verity(json.loads(rs)['data']['remark'], '')
     Assertion.verity(json.loads(rs)['data']['templateName'], template_name)
     Assertion.verity(
         json.loads(rs)['data']['templateType'],
         'template_type_incoming_parts')
Beispiel #5
0
 def test_039_api_78dk_platform_file_download(self):
     """
     文件下载
     :return:
     """
     WebAction.test_api_78dk_platform_file_download(filename='', urlstr='')