import json from faker import Factory from common.myCommon import Assertion from common.myCommon.TestBaseCase import TestBaseCase from mjjry.testAction import WebAction, specialAction from mjjry.testAction import loginAction global_dict = loginAction.global_dict fake = Factory().create('zh_CN') # 商户名称 merchantname = loginAction.sign + fake.company() name = fake.name_male() + loginAction.sign email = loginAction.sign + fake.email() mobile = '15388188697' cardnumber = fake.ssn() class test_003_web_Merchant_two(TestBaseCase): 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 + '商户简称',
""" import json from faker import Factory from common.myCommon import Assertion from common.myCommon.TestBaseCase import TestBaseCase from ymjry.query import xqkj_query from ymjry.testAction import WebAction from ymjry.testAction import loginAction from ymjry.testAction import specialAction global_dict = loginAction.global_dict fake = Factory().create('zh_CN') # 系统用户基本信息 name = loginAction.sign + fake.name_male() idcard = fake.ssn(min_age=18, max_age=20) email = loginAction.sign + fake.email() phone = '131' + fake.ean8() # 修改用户信息 name3 = loginAction.sign + 'modify' + fake.name_male() phone3 = '131' + fake.ean8() email3 = loginAction.sign + fake.email() # 新增用户测试--非email name4 = loginAction.sign + 'mail' + fake.name_male() phone4 = '131' + fake.ean8() email4 = loginAction.sign + fake.email() # 新增报表 name_report = fake.name_male() + 'vcvdsfsdfsdfdsfsdfdsfxx报表'
@Time :2020-01-10 @Author : 闫红 @File : test_002_web_ur.py @desc : 催收管理接口自动化 """ import json from common.myCommon import Assertion from common.myCommon.TestBaseCase import TestBaseCase from xyf.testAction import Creditpay_urAction, Creditpay_urAction_special from faker import Factory from common.myFile import MockData fake = Factory().create('zh_CN') carno = fake.ssn() phone = MockData.phone() name = fake.name() class test_002_web_ur(TestBaseCase): def test_001_ui_user_findUserBill(self): """ Time :20120-04-10 author : 闫红 desc :逾期用户-列表,筛选出所有逾期用户数据 """ res = json.loads(Creditpay_urAction.test_ui_user_findUserBill(cardno='', loantimebegin='', loantimeend='', phone='', realname='', shouldrepaymentbegin='', shouldrepaymentend='', stage='', currentpage=1, pagesize=10)) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')