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")
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_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")
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')
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'], '查无数据')
def test_078_api_78dk_platform_tm_operate_viewOperateCheckContract_overlong(self): """ Time :2019-07-23 author : 闫红 desc : 运营审批信息查询,contract_uuid超长 """ uid1 = MD.words_en_lower(256) res = PlatformAction.test_api_78dk_platform_tm_operate_viewOperateCheckContract(uid=uid1) Assertion.verityContain(json.loads(res)['msg'], '合同UUID:{}不存在'.format(uid1)) Assertion.verity(json.loads(res)['code'], '20000')
def test_053_api_78dk_platform_tm_telephone_viewTelephoneCheckContract_overlong(self): """ Time :2019-07-23 author : 闫红 desc : 电核信息查询,合同uuid超长 """ uuid1 = MD.words_en_lower(256) res = PlatformAction.test_api_78dk_platform_tm_telephone_viewTelephoneCheckContract(uid=uuid1) Assertion.verityContain(json.loads(res)['msg'], '{}不存在'.format(uuid1)) Assertion.verity(json.loads(res)['code'], '20000')
def test_049_api_78dk_platform_tm_first_viewContractOperationLogInfo_contractuuid_overlong(self): """ Time :2019-07-23 author : 闫红 desc : 查询操作日志详情,contractuuid超长,contractoperationloguuid为空 """ res = PlatformAction.test_api_78dk_platform_tm_first_viewContractOperationLogInfo( contractuuid=MD.words_en_lower(256), contractoperationloguuid='') Assertion.verityContain(json.loads(res)['msg'], 'ContractOperationLogUuid不能为空') Assertion.verity(json.loads(res)['code'], '20000')
def test_039_api_78dk_platform_tm_first_viewContractOperationLogs_overlong(self): """ Time :2019-07-23 author : 闫红 desc : 查询合同操作日志,contract_uuid超长 """ res = PlatformAction.test_api_78dk_platform_tm_first_viewContractOperationLogs( uuid=MD.words_en_lower(256), pagesize=10, pagecurrent=1) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
def test_062_api_78dk_platform_tm_first_viewFirstCheckContract_overlong(self): """ Time :2019-07-22 author : 闫红 desc : 初审信息查询(新),合同id超长 """ contract_uuid1 = MD.words_en_lower(24) res = WebAction.test_api_78dk_platform_tm_first_viewFirstCheckContract(uid=contract_uuid1) Assertion.verityContain(json.loads(res)['msg'], '查询合同基本信息时出错!') Assertion.verity(json.loads(res)['code'], '20000')
def test_007_api_78dk_platform_tm_first_showSupplementImage_contract_uuid_overlong( self): """ Time :2019-07-22 author : 闫红 desc : 展示补录的图片资料 V1.3 新增,contract_uuid超长 """ res = specialAction.test_api_78dk_platform_tm_first_showSupplementImage( contractuuid=MD.words_en_lower(256)) Assertion.verityContain(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')
import unittest from faker import Factory from common.myCommon import Assertion from common.myCommon.TestBaseCase import TestBaseCase from common.myFile import MockData as MD from mjjry.query import xqkj_query from mjjry.testAction import WebAction from mjjry.testAction import loginAction from mjjry.testAction import specialAction fake = Factory().create('zh_CN') labelcontent = loginAction.sign + MD.words_cn(2) customerinformation = loginAction.sign + MD.words_cn(2) impactdata = loginAction.sign + MD.words_cn(2) windcontroldatasource = loginAction.sign + MD.words_en_lower(2) class test_019_web_FirstCheck_two(TestBaseCase): @unittest.skip('美佳无') def test_001_api_78dk_platform_tm_first_xuexinreport(self): """ Time :2019-07-22 author : 闫红 desc : 学信网报告 V1.3 新增 """ global contract_uuid contract_uuid = loginAction.global_dict.get('contract_uuid') res = WebAction.test_api_78dk_platform_tm_first_xuexinreport( contractuuid=contract_uuid) Assertion.verity(json.loads(res)['msg'], '成功')
@desc : 系统管理测试用例 """ import json from faker import Factory from common.myCommon import Assertion from common.myCommon.TestBaseCase import TestBaseCase from xqkj.query import PlatformSystem_query as pq from xqkj.testAction import PmsAction from xqkj.testAction import specialAction from xqkj.testAction import loginAction from common.myFile import MockData as MD businesssystemuuid = loginAction.sign + MD.words_en_lower(7) secret = loginAction.sign + MD.words_en_lower(7) fake = Factory().create('zh_CN') host = 'test.' + MD.words_en_lower(3) + loginAction.sign + '78dk.com' name = '系统' + fake.word() + loginAction.sign key = 'system_' + str(MD.number(1)) des = '系统权限' + str(MD.number(1)) class test_018_pms_system(TestBaseCase): def test_001_backstage_system_add_all_null(self): """ Time :2019-07-12 author : 闫红 desc : 新增系统接口 (所有字段均为空) """