Esempio n. 1
0
 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'], '成功')
Esempio n. 2
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_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')
 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_024_api_78dk_platform_tm_first_saveCustomerInformation_contract_uuid_overlong(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 电核备注 - 客户信息 保存接口 V1.3 新增,contract_uuid超长
     """
     res = PlatformAction.test_api_78dk_platform_tm_first_saveCustomerInformation(
         contractuuid=MD.number(256), customerinformation=customerinformation)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
 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")
Esempio n. 7
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")
Esempio n. 8
0
 def test_004_api_78dk_platform_mm_base_viewWeChart_merchant_overlong(self):
     """
     Time       :2019-08-12
     author     : 闫红
     desc       : 微信查看-v1.4,商户id超长
     """
     res = PlatformAction.test_api_78dk_platform_mm_base_viewWeChart(
         uid=MockData.number(256))
     Assertion.verity(json.loads(res)['code'], '10000')
     Assertion.verityContain(json.loads(res)['msg'], '成功')
 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')
 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')
Esempio n. 11
0
 def test_015_ui_user_findUserBill_phone_not_startwith_1(self):
     """
     Time       :20120-04-10
     author     : 闫红
     desc       :逾期用户-列表,电话传入非1开头的11位数
     """
     phone = int('2')+MockData.number(10)
     res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='',
           phone=phone, realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10))
     Assertion.verity(res['code'], '10000')
     Assertion.verity(res['msg'], '成功')
 def test_015_api_78dk_platform_tm_bd_viewBdInfo_contract_uuid_overlong(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 查询BD信息v1.3.0,contract_uuid超长
     """
     contract_uuid1 = MD.number(256)
     res = PlatformAction.test_api_78dk_platform_tm_bd_viewBdInfo(uid=contract_uuid1)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
     Assertion.verity(json.loads(res)['data']['contractUuid'], '{}'.format(contract_uuid1))
 def test_011_api_78dk_platform_tm_first_alipayreport_contract_uuid_overlogn(
         self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 支付宝报告 V1.3 新增,contract_uuid超长
     """
     res = WebAction.test_api_78dk_platform_tm_first_alipayreport(
         contractuuid=MD.number(256))
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
Esempio n. 14
0
 def test_007_backstage_user_add_overlong(self):
     """
     Time       :2019-07-17
     author     : 闫红
     desc       : 用户新增,姓名超长
     """
     role_id = pq.get_role_id('超级管理员')
     name = '用户'+str(MD.number(254))
     rs = PmsAction.test_backstage_user_add(email=email, roleid=role_id, realname=name)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], "SUCCESS")
Esempio n. 15
0
 def test_009_ui_user_findUserBill_carno_overlong(self):
     """
     Time       :20120-04-10
     author     : 闫红
     desc       :逾期用户-列表,身份证号错误
     """
     carno = MockData.number(30)
     res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno=carno, loantimebegin='', loantimeend='',
           phone='', realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10))
     Assertion.verity(res['code'], '10000')
     Assertion.verity(res['msg'], '成功')
Esempio n. 16
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')
Esempio n. 17
0
 def test_014_backstage_user_add_error_email(self):
     """
     Time       :2019-07-17
     author     : 闫红
     desc       : 用户新增,不合规email,新增失败
     """
     role_id = pq.get_role_id('超级管理员')
     email = MD.number(5)
     rs = PmsAction.test_backstage_user_add(email=email, roleid=role_id, realname=user_name)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], "SUCCESS")
Esempio n. 18
0
 def test_015_api_78dk_platform_tm_bd_viewBdInfo_contract_uuid_overlong(
         self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 查询BD信息v1.3.0,contract_uuid超长
     """
     contract_uuid1 = MD.number(256)
     res = WebAction.test_api_78dk_platform_tm_bd_viewBdInfo(
         uid=contract_uuid1)
     Assertion.verity(json.loads(res)['msg'], '查询BD信息失败!')
     Assertion.verity(json.loads(res)['code'], '20000')
 def test_016_backstage_tenant_administrator_add_overlong(self):
     """
     Time       :2019-07-16
     author     : 闫红
     desc       : 机构管理员新增,名字超长
     """
     tenantid = pq.get_tenantid('系统', '机构')
     email1 = fake.email()
     administrator_name1 = '机构管理员'+str(MD.number(255))
     rs = PmsAction.test_backstage_tenant_administrator_add(phone=phone, name=administrator_name1, email=email1, tenantid=tenantid)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], 'SUCCESS')
Esempio n. 20
0
 def test_028_backstage_system_permission_set_key(self):
     """
     Time       :2019-07-15
     author     : 闫红
     desc       : 权限编辑接口,key非数字字母下划线
     """
     business_id = pq.get_business_id('系统')
     system_key = 'system-' + str(MD.number(1))
     permissions = [{'key': system_key, 'des': des}]
     rs = specialAction.test_backstage_system_permission_set(
         id=business_id, permissions=permissions)
     Assertion.verityNot(json.loads(rs)['code'], 10000)
     Assertion.verityNot(json.loads(rs)['msg'], "SUCCESS")
Esempio n. 21
0
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       : 新增系统接口 (所有字段均为空)
        """
        rs = PmsAction.test_backstage_system_add(businesssystemuuid='',
                                                 host='',
                                                 name='',
                                                 secret='')
        Assertion.verity(json.loads(rs)['code'], 10000)
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
import time


fake = Factory().create('zh_CN')
tenant_name = '机构' + str(MD.number(1)) + loginAction.sign
phone = fake.phone_number()
email = fake.email()
administrator_name = '机构管理员'+str(MD.number(1))+loginAction.sign


class test_019_pms_tenant_administrator(TestBaseCase):
    def test_001_backstage_tenant_config_tenant_list_all(self):
        """
        Time       :2019-07-15
        author     : 闫红
        desc       : 机构管理员列表查询,查询所有机构
        """
        rs = PmsAction.test_backstage_tenant_config_tenant_list(name='', currentpage=1, pagesize=10)
        Assertion.verity(json.loads(rs)['code'], 10000)
        Assertion.verity(json.loads(rs)['msg'], "SUCCESS")