def test_submit_risk_info_003(self): data = Setup(self.trade, self.case_id_003) data.put_task_action_setup() sesion = login.get_session(data.username, data.passwd) switch_position.switch_position(sesion, data.position) asset_item_id = asset_items.asset_items_add( sesion, data.asset_type, data.asset_phone, data.asset_account, data.asset_finace, data.asset_customer_name, data.asset_card, data.asset_sex) asset_items.asset_items_edit(sesion, asset_item_id, data.asset_type, data.asset_phone, data.asset_account, data.asset_finace, data.asset_customer_name, data.asset_card, data.asset_sex) if data.card_type == '0': r_json = submit_risk_info.task_submit_risk_info_company( sesion, asset_item_id, data.bank_phone, data.asset_customer_name, data.company_card, data.isEntrustedPayment, data.risk_level, data.company_account, data.purpose, data.card_type) else: r_json = submit_risk_info.task_submit_risk_info_personal( sesion, asset_item_id, data.bank_phone, data.asset_customer_name, data.asset_card, data.isEntrustedPayment, data.risk_level, data.asset_account, data.purpose) if r_json["success"] is True and r_json['message'] == "": data.set_return_info('返回资产编号', asset_item_id) data.set_result('执行成功', str(r_json)) elif r_json["success"] is False and r_json['message'] != "": data.set_result('执行失败', str(r_json))
purpose = "3" # 资产风险等级 riskLevel = "96" # 是否受托支付 isEntrustedPayment = "0" # 借款人性质 cardType = 0 # 0-公司,1-个人 session = login.get_session("18519030808", "1adbb3178591fd5bb0c248518f39bf6d") switch_position.switch_position(session, positionId) # # 计息方式 # rateMethod = finance_products.finance_products(session, product_id, "计息方式") # # 还款方式 # repayment = finance_products.finance_products(session, product_id, "还款方式") # # 还款期限 # duration = finance_products.finance_products(session, product_id, "还款期限") asset_item_id = asset_items.asset_items_add(session, asset_type, phone, account, product_id, name, ICcard, "M") asset_items.asset_items_edit(session, asset_item_id, asset_type, phone, account, product_id, name, ICcard, "M") submit_risk_info.task_submit_risk_info_personal(session, asset_item_id, bank_phone, name, ICcard, isEntrustedPayment, riskLevel, bank_card, purpose) # put_task_action_submit.task_submit_risk_info_company(session, asset_item_id, bank_phone, name, gongsi_card, # isEntrustedPayment, riskLevel, bank_card, purpose, cardType)