def test_035_api_78dk_app_process_getSignResult(self): """ 查询法大大签约结果 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_getSignResult()) Assertion.verity(res['code'], '10000')
def test_099_api_78dk_app_login_loginOut(self): """ 退出登录 :return: """ res = json.loads(AppAction.test_api_78dk_app_login_loginOut()) Assertion.verity(res['code'], '10000')
def test_018_api_78dk_app_common_idCardInit(self): """ 初始化(获取身份认证) :return: """ res = json.loads(AppAction.test_api_78dk_app_common_idCardInit()) Assertion.verity(res['code'], '10000')
def test_032_api_78dk_app_bill_PaymentStatus_non(self): """ desc : 还款状态 v1.5.0, 账单Uuid为空 author : 罗林 """ res = AppAction.test_api_78dk_app_bill_paymentStatus(contractuuid='') Assertion.verity(json.loads(res)['code'], '10000')
def test_036_api_78dk_app_process_getSignUrl(self): """ 获取法大大签约地址 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_getSignUrl()) Assertion.verity(res['code'], '30000')
def test_002_api_78dk_app_process_getBankCardInfo(self): """ 查询绑定的银行卡列表 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_getBankCardInfo()) Assertion.verity(res['code'], '10000')
def test_001_api_78dk_app_common_queryQiNiuToken(self): """ 获取七牛上传token :return: """ res = json.loads(AppAction.test_api_78dk_app_common_queryQiNiuToken()) Assertion.verity(res['code'], '10000')
def test_001_api_78dk_app_process_savePersonInfo(self): """ 保存基本信息 :return: """ user_uuid = loginAction.global_dict.get('user_uuid') global datum_type_education_id, datum_type_housing_id, datum_type_marry_id, live_city, live_city_name global live_detail, live_province, live_province_name, live_region, live_region_name, contactlist datum_type_education_id, datum_type_housing_id, datum_type_marry_id, live_city, live_city_name, live_detail, \ live_province, live_province_name, live_region, live_region_name = xqkj_query.get_info( 'Tbl_UserPersonalInfo', 'datum_type_education_id,datum_type_housing_id,datum_type_marry_id,live_city,live_city_name,' 'live_detail,live_province,live_province_name,live_region,live_region_name', 'user_uuid="{}"'.format(user_uuid)) contactlist = [{ "datumTypeContactId": i + 1, "name": fake.name(), "phone": fake.phone_number() } for i in range(contact_num)] res = json.loads( AppAction.test_api_78dk_app_process_savePersonInfo( contactlist=contactlist, datumtypeeducationid=datum_type_education_id, datumtypehousingid=datum_type_housing_id, datumtypemarryid=datum_type_marry_id, livecity=live_city, livecityname=live_city_name, livedetail=live_detail, liveprovince=live_province, email=email, iswork=1, liveprovincename=live_province_name, liveregion=live_region, liveregionname=live_region_name)) Assertion.verity(res['code'], '20000')
def test_001_api_78dk_app_process_saveWorkInfo(self): """ 保存工作信息 :return: """ user_uuid = loginAction.global_dict.get('user_uuid') global company_city, company_city_name, company_detail, company_name, company_province, company_province_name global company_region, company_region_name, datum_type_income_id, position, work_phone company_city, company_city_name, company_detail, company_name, company_province, company_province_name, \ company_region, company_region_name, datum_type_income_id, position, work_phone = \ xqkj_query.get_info( 'Tbl_UserWorkInfo', 'company_city,company_city_name,company_detail,company_name,company_province,' 'company_province_name,company_region,company_region_name,datum_type_income_id,position,work_phone', 'user_uuid="{}"'.format(user_uuid)) res = json.loads( AppAction.test_api_78dk_app_process_saveWorkInfo( companycity=company_city, companycityname=company_city_name, companydetail=company_detail, companyname=company_name, companyprovince=company_province, companyprovincename=company_province_name, companyregion=company_region, companyregionname=company_region_name, datumtypeincomeid=datum_type_income_id, position=position, workphone=work_phone, propertiesid='74', scaleid='81', datumtypeworktimeid=91)) Assertion.verity(res['code'], '10000')
def test_001_api_78dk_app_process_getSupportBanks(self): """ 查询支持银行(弹窗描述) :return: """ res = json.loads(AppAction.test_api_78dk_app_process_getSupportBanks()) Assertion.verity(res['code'], '10000')
def test_005_api_78dk_app_process_mxCallback(self): """ (回调接口)接口中心-魔蝎 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_mxCallback('')) Assertion.verity(res['code'], '20000')
def test_008_api_78dk_app_process_saveHoldKey_none(self): """ 保存手持身份证照片 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_saveHoldKey(holdkey='')) Assertion.verity(res['code'], '20000')
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')
def test_023_test_api_78dk_app_process_sendVerifyEmail(self): """ 发送验证邮件(新) :return: """ res = json.loads( AppAction.test_api_78dk_app_process_sendVerifyEmail(email=email)) Assertion.verity(res['code'], '10000')
def test_022_api_78dk_app_process_getNewestPersonInfo(self): """ 查询基本信息(最近的) :return: """ res = json.loads( AppAction.test_api_78dk_app_process_getNewestPersonInfo()) Assertion.verity(res['code'], '10000')
def test_060_api_78dk_app_process_getCodeUrl(self): """ Time :2019-08-14 author : 闫红 desc : 获取商户二维码前缀V1.4.0 """ res = AppAction.test_api_78dk_app_process_getCodeUrl() Assertion.verity(json.loads(res)['code'], '10000')
def test_040_test_api_78dk_app_process_getCode(self): """ 学信网认证获取验证码(新) :return: """ res = json.loads( AppAction.test_api_78dk_app_process_getCode(taskid='')) Assertion.verity(res['code'], '10000')
def test_027_api_78dk_app_common_getAppReview_ios(self): """ 获取app审核环境(新) :return: """ res = json.loads( AppAction.test_api_78dk_app_common_getAppReview(platform='iOS')) Assertion.verity(res['code'], '20000')
def test_006_api_78dk_app_process_saveOrcInfo_two(self): """ 保存人脸识别结果 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_saveOrcInfo( firstkey=firstkey, secondkey=secondkey, thirdkey=thirdkey, note=note)) Assertion.verity(res['code'], '10000')
def test_006_api_78dk_app_common_getDictionaries_none(self): """ 获取字典列表 :return: """ res = json.loads( AppAction.test_api_78dk_app_common_getDictionaries(datumtype='')) Assertion.verity(res['code'], '10000')
def test_003_api_78dk_app_process_getContractImages(self): """ 查询影像资料(当前订单) :return: """ res = json.loads( AppAction.test_api_78dk_app_process_getContractImages()) Assertion.verity(res['code'], '10000')
def test_005_api_78dk_app_common_getCites_not_exits(self): """ 获取城市列表 :return: """ res = json.loads( AppAction.test_api_78dk_app_common_getCites(parent=fake.ean8())) Assertion.verity(res['code'], '10000')
def test_004_api_78dk_app_common_getCites_error(self): """ 获取城市列表 :return: """ res = json.loads( AppAction.test_api_78dk_app_common_getCites(parent='abc')) Assertion.verity(res['code'], '20000')
def test_020_api_78dk_app_process_saveIdCardInfo(self): """ 保存身份证信息 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_saveIdCardInfo( cardscanidcardno=card_scan_idcard_no, cardscanname=card_scan_name, oppositekey=opposite_key, frontkey=front_key, frontnote=front_note, oppositenote=opposite_note)) Assertion.verity(res['code'], '10000')
def test_014_api_78dk_app_process_saveIdCardInfo_19cardno(self): """ 保存身份证信息 :return: """ res = json.loads(AppAction.test_api_78dk_app_process_saveIdCardInfo( cardscanidcardno=fake.random_number(20), cardscanname=card_scan_name, oppositekey=opposite_key, frontkey=front_key, frontnote=front_note, oppositenote=opposite_note)) Assertion.verity(res['code'], '20000')
def test_035_test_api_78dk_app_perCenter_viewByStagesLists(self): """ 分期列表 :return: """ res = json.loads( AppAction.test_api_78dk_app_perCenter_viewByStagesLists( pagecurrent=1, pagesize=10)) Assertion.verity(res['code'], '10000')
def test_008_api_78dk_app_common_getDictionaries_not_exits(self): """ 获取字典列表 :return: """ res = json.loads( AppAction.test_api_78dk_app_common_getDictionaries( datumtype=fake.ean8())) Assertion.verity(res['code'], '10000')
def test_039_api_78dk_app_perCenter_repaymentFormLists(self): """ 还款计划列表 :return: """ res = json.loads( AppAction.test_api_78dk_app_perCenter_repaymentFormLists( paraminfo=contract_uuid, pagecurrent=1, pagesize=10)) Assertion.verity(res['code'], '10000')
def test_038_api_78dk_app_perCenter_loanDatail(self): """ 申请详情 :return: """ res = json.loads( AppAction.test_api_78dk_app_perCenter_loanDatail( loanorderuuid=contract_uuid)) Assertion.verity(res['code'], '10000')
def test_037_api_78dk_app_perCenter_loanAgreement(self): """ 查看贷款协议 :return: """ res = json.loads( AppAction.test_api_78dk_app_perCenter_loanAgreement( loanorderuuid=contract_uuid)) Assertion.verity(res['code'], '10000')