Example #1
0
 def test_eyt_03_Property_info(self):
     '''物业信息录入'''
     common.input_customer_base_info(self.page,
                                     self.cust_info['_cust_base_info'])
     common.input_customer_borrow_info(self.page,
                                       self.cust_info['_borrow_info'])
     common.input_bbi_Property_info(self.page)
Example #2
0
    def test_gqt_02_input(self):
        '''过桥通产品借款人信息录入'''

        # 1 客户信息-业务基本信息
        common.input_customer_base_info(self.page,
                                        self.cust_info['_cust_base_info'])

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        common.input_customer_borrow_info(self.page,
                                          self.cust_info['_borrow_info'])
Example #3
0
    def test_cwd_03_Property_info(self):
        '''物业信息录入'''

        # 1 客户信息-业务基本信息
        common.input_customer_base_info(self.page,
                                        self.cust_info['_cust_base_info'])

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        common.input_customer_borrow_info(self.page,
                                          self.cust_info['_borrow_info'])

        common.input_cwd_bbi_Property_info(
            self.page, self.data['applyPropertyInfoVo'][0],
            self.data['applyCustCreditInfoVo'][0])

        self.log.info("录入物业信息结束")
Example #4
0
    def test_03_two_borrower(self):
        '''录入两个借款人'''

        name = custom.get_current_function_name()
        print("当前用例编号:" + name)
        # 录入基本信息
        common.input_customer_base_info(self.page, self.evt['data']['applyVo'])
        # 录入借款人/共贷人信息
        common.input_customer_borrow_info(self.page,
                                          self.evt['data']['custInfoVo'][0])
        common.input_more_borrower(self.page)
        # 录入业务基本信息
        common.input_cwd_bbi_Property_info(
            self.page, self.evt['data']['applyPropertyInfoVo'][0],
            self.evt['data']['applyCustCreditInfoVo'][0])

        # 提交
        common.submit(self.page)
        self.page.driver.quit()
Example #5
0
    def test_cwd_02_borrowr_info(self):
        '''借款人/共贷人/担保人信息'''

        self.test_cwd_01_base_info()
        try:
            res = common.input_customer_borrow_info(
                self.page, self.data['custInfoVo'][0])[1]
            if res:
                self.log.info("录入借款人信息结束")
        except Exception as e:
            self.log.error("Error:", e)
            raise
Example #6
0
    def test_01_one_borrower(self):
        '''单借款人'''

        name = custom.get_current_function_name()
        print("当前用例编号:" + name)
        # 录入一个借款人

        # 1 客户信息-业务基本信息
        common.input_customer_base_info(self.page, self.evt['data']['applyVo'])

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        common.input_customer_borrow_info(self.page,
                                          self.evt['data']['custInfoVo'][0])

        # 3 物业信息
        common.input_cwd_bbi_Property_info(
            self.page, self.evt['data']['applyPropertyInfoVo'][0],
            self.evt['data']['applyCustCreditInfoVo'][0])

        # 提交
        common.submit(self.page)
        self.countTestCases()
Example #7
0
    def test_gqt_04_applydata(self):
        '''过桥通申请件录入,提交'''

        data, _ = custom.enviroment_change("data_gqt.json", self.number,
                                           self.env)

        self.evt['data'].update(data)
        # self.page = Login()

        # 1 客户信息-业务基本信息
        common.input_customer_base_info(self.page, self.evt['data']['applyVo'])

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        common.input_customer_borrow_info(self.page,
                                          self.evt['data']['custInfoVo'][0])

        # 3 物业信息
        common.input_cwd_bbi_Property_info(
            self.page, self.evt['data']['applyPropertyInfoVo'][0],
            self.evt['data']['applyCustCreditInfoVo'][0], True, 'gqt')

        # 提交
        common.submit(self.page)
        self.log.info("申请件录入完成提交")
Example #8
0
	def test_xhd_04_applydata(self):
		'''申请件录入,提交'''
		
		# 1 客户信息-业务基本信息
		# log_to().info(u"客户基本信息录入")
		common.input_customer_base_info(self.page, self.cust_info['_cust_base_info'])
		
		# 2 客户基本信息 - 借款人/共贷人/担保人信息
		# log_to().info(u"借款人/共贷人信息录入")
		self.custName = common.input_customer_borrow_info(self.page, self.cust_info['_borrow_info'])[1]
		
		# 3 物业信息
		# log_to().info(u"物业基本信息录入")
		common.input_bbi_Property_info(self.page)
		
		# 提交
		common.submit(self.page)
Example #9
0
    def test_gqt_04_applydata(self):
        '''申请件录入,提交'''

        # 1 客户信息-业务基本信息
        common.input_customer_base_info(self.page, self.data['applyVo'])

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        self.custName = common.input_customer_borrow_info(
            self.page, self.data['custInfoVo'][0])[1]

        # 3 物业信息
        common.input_cwd_bbi_Property_info(
            self.page, self.data['applyPropertyInfoVo'][0],
            self.data['applyCustCreditInfoVo'][0], True, 'gqt')

        # 提交
        common.submit(self.page)
        self.log.info("申请件录入完成提交")
Example #10
0
 def test_ety_02_borrowr_info(self):
     '''借款人/共贷人/担保人信息'''
     common.input_customer_base_info(self.page,
                                     self.cust_info['_cust_base_info'])
     common.input_customer_borrow_info(self.page,
                                       self.cust_info['_borrow_info'])
Example #11
0
    def test_warrantManage_original(self):
        '''原件请款'''
        '''
			1. 申请录入
		'''
        # 1 客户信息-业务基本信息
        if common.input_customer_base_info(self.page, self.data['applyVo']):
            self.log.info("录入基本信息完成")

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        self.custName = common.input_customer_borrow_info(
            self.page, self.data['custInfoVo'][0])[1]

        # 3 物业信息
        common.input_cwd_bbi_Property_info(
            self.page, self.data['applyPropertyInfoVo'][0],
            self.data['applyCustCreditInfoVo'][0])
        # 提交
        common.submit(self.page)
        self.log.info("申请件录入完成提交")

        applyCode = common.get_applycode(self.page, self.custName)
        if applyCode:
            self.applyCode = applyCode
            self.log.info("申请件查询完成")
            print("applyCode:" + self.applyCode)
        # 流程监控
        result = common.process_monitor(self.page, applyCode)
        if result is not None:
            self.next_user_id = result
            self.log.info("完成流程监控查询")
        else:
            self.log.error("流程监控查询出错!")
            raise
        '''
			2. 风控审批流程
		'''

        # 下一个处理人重新登录
        page = Login(result)

        # 分公司主管审批
        res = common.approval_to_review(page, applyCode, u'分公司主管审批通过', 0)
        if not res:
            self.log.error("审批失败")
            raise

        self.get_next_user(page, applyCode, u'分公司主管审批通过!')

        # 下一个处理人重新登录
        page = Login(self.next_user_id)

        # 分公司经理审批
        res = common.approval_to_review(page, applyCode, u'分公司经理回退到申请录入', 0)
        if not res:
            self.log.error("审批失败")
            raise

        self.get_next_user(page, applyCode, u'分公司经理审批通过!')

        # 下一个处理人重新登录
        page = Login(self.next_user_id)

        # 区域预复核审批
        res = common.approval_to_review(page, applyCode, u'区域预复核审批通过', 0)
        if not res:
            self.log.error("区域预复核审批失败!")
            raise

        self.get_next_user(page, applyCode, u'区域预复核审批通过!')

        # 下一个处理人重新登录
        page = Login(self.next_user_id)

        # 审批经理审批通过
        res = common.approval_to_review(page, applyCode, u'审批经理审批通过', 0)
        if not res:
            self.log.error("审批经理审批失败!")
            raise

        self.get_next_user(page, applyCode, u'审批经理审批成功!')
        '''
			3. 合同打印
		'''
        # 下一个处理人重新登录
        page = Login(self.next_user_id)
    def test_01_region_special_approval(self):
        '''区域李伟波特批'''
        '''
			---------------------------------------------------------------------
									1. 申请基本信息录入
			---------------------------------------------------------------------
		'''
        # 1 客户信息-业务基本信息
        if common.input_customer_base_info(self.page, self.data['applyVo']):
            self.log.info("录入基本信息完成")

        # 2 客户基本信息 - 借款人/共贷人/担保人信息
        self.custName = common.input_customer_borrow_info(
            self.page, self.data['custInfoVo'][0])[1]

        # 3 物业信息
        common.input_cwd_bbi_Property_info(
            self.page, self.data['applyPropertyInfoVo'][0],
            self.data['applyCustCreditInfoVo'][0])
        # 提交
        common.submit(self.page)
        self.log.info("申请件录入完成提交")
        self.log.info("主借人:" + self.custName)
        applyCode = common.get_applycode(self.page, self.custName)

        if applyCode:
            self.applyCode = applyCode
            self.log.info("申请件查询完成:" + self.applyCode)
        else:
            self.log.error("申请件查询失败!")
            raise

        # 流程监控
        result = common.process_monitor(self.page, applyCode)
        if result is not None:
            self.next_user_id = result
            self.log.info("完成流程监控查询")
            self.page.driver.quit()
        else:
            self.log.error("流程监控查询出错!")
            raise
        '''
			------------------------------------------------------------
								2. 风控审批-区域特批
			------------------------------------------------------------
		'''
        # 下一个处理人重新登录
        page = Login(result)

        # 分公司主管审批
        res = common.approval_to_review(page, applyCode, u'分公司主管审批通过', 0)
        if not res:
            self.log.error("审批失败")
            raise
        else:
            self.log.info(u'分公司主管审批通过!')
            self.get_next_user(page, applyCode)

        # 下一个处理人重新登录
        page = Login(self.next_user_id)

        # 分公司经理审批通过
        res = common.approval_to_review(page, applyCode, u'分公司经理回退到申请录入', 0)
        if not res:
            self.log.error("审批失败")
            raise
        else:
            self.log.info(u'分公司经理审批通过!')
            self.get_next_user(page, applyCode)

        # 下一个处理人重新登录
        page = Login(self.next_user_id)

        if self.next_user_id != 'xn004754':
            # 区域特批
            res = common.approval_to_review(page, applyCode, u'区域审批经理审批', 0)
            if not res:
                self.log.error("区域审批经理审批失败")
                raise
            else:
                self.log.info(u'区域审批经理审批成功!')
                self.get_next_user(page, applyCode)
        else:
            r = common.special_approval(page, self.applyCode, u'区域特批')
            if not r:
                self.log.error('区域特批出错!')
                raise
            else:
                self.log.info('区域特批通过!')
                page.driver.quit()
Example #13
0
    def test_02_two_borrower(self, n=2):
        # 录入两个借款人
        self.skipTest("xxxxx")
        # n = 2
        common.input_customer_base_info(self.page, self.evt['data']['applyVo'])

        if n == 1:
            # common.input_customer_borrow_info(self.page, self.evt['data']['custInfoVo'][0])
            # 添加借款人
            self.page.driver.find_element_by_xpath(
                '//*[@id="tb"]/a[1]/span[2]').click()
            # 姓名
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[4]/div/table/tbody/tr/td/input'
            ).send_keys(u" 小王")
            # 身份证
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[5]/div/table/tbody/tr/td/input'
            ).send_keys("360101199101011054")

            # 受教育程度
            self.page.driver.find_element_by_id(
                "_easyui_textbox_input3").click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i2_0').click()

            # 婚姻
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[8]/div/table/tbody/tr/td/span/span/a'
            ).click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i3_3').click()

            # 家庭住址信息
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input5').send_keys("hhhhh")
            # phone
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[10]/div/table/tbody/tr/td/input'
            ).send_keys("13683121234")
            # 单位名称
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[11]/div/table/tbody/tr/td/input'
            ).send_keys('xxxxx')
            # 公司规模
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input6').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i4_3').click()

            # 所属行业
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input7').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i5_2').click()

            # 职位
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input9').send_keys("aaaaaa")
            # 日期
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[16]/div/table/tbody/tr/td/input'
            ).send_keys('2017-09-01')
            # 工作年限
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input10').send_keys(10)
            # 月均收入
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input11').send_keys(10000)
            # 是否有社保
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-0"]/td[19]/div/table/tbody/tr/td/input'
            ).click()
            # 确认
            self.page.driver.find_element_by_xpath(
                '//*[@id="tb"]/a[3]/span[2]').click()
        elif n == 2:
            common.input_customer_borrow_info(
                self.page, self.evt['data']['custInfoVo'][0])
            self.page.driver.find_element_by_xpath(
                '//*[@id="tb"]/a[1]/span[2]').click()
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-1"]/td[4]/div/table/tbody/tr/td/input'
            ).send_keys(u"小黑")
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-1"]/td[5]/div/table/tbody/tr/td/input'
            ).send_keys("360101199101011054")
            time.sleep(2)
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input14').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i8_2').click()

            self.page.driver.find_element_by_id(
                '_easyui_textbox_input15').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i9_0').click()

            self.page.driver.find_element_by_id(
                '_easyui_textbox_input16').send_keys("xxxaaaa")
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-1"]/td[10]/div/table/tbody/tr/td/input'
            ).send_keys("13912341923")
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-1"]/td[11]/div/table/tbody/tr/td/input'
            ).send_keys("yyyyyy")
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input17').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i10_3').click()
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input18').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i11_2').click()

            self.page.driver.find_element_by_id(
                '_easyui_textbox_input20').send_keys("bbbbb")
            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-1"]/td[16]/div/table/tbody/tr/td/input'
            ).send_keys("2017-12-19")
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input21').send_keys(12)
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input22').send_keys(20000)

            self.page.driver.find_element_by_xpath(
                '//*[@id="datagrid-row-r1-2-1"]/td[19]/div/table/tbody/tr/td/input'
            ).click()

            # 确认
            self.page.driver.find_element_by_xpath(
                '//*[@id="tb"]/a[3]/span[2]').click()

            # 关联关系信息
            self.page.driver.find_element_by_xpath(
                '//*[@id="tbs"]/a[1]').click()
            self.page.driver.find_element_by_id(
                '_easyui_textbox_input23').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i12_0').click()

            self.page.driver.find_element_by_id(
                '_easyui_textbox_input24').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i13_1').click()

            self.page.driver.find_element_by_id(
                '_easyui_textbox_input25').click()
            self.page.driver.find_element_by_id(
                '_easyui_combobox_i14_0').click()
            self.page.driver.find_element_by_xpath(
                '//*[@id="tb"]/a[3]/span[2]').click()

            # 保存
            self.page.driver.find_element_by_id(
                'apply_module_apply_save').click()
            self.page.driver.find_element_by_xpath(
                '/html/body/div[2]/div[3]/a').click()
	def test_one_person_sign(self):
		'''单人签约'''
		
		# ---------------------------------------------------------------------------------
		#                   1. 申请录入
		# ---------------------------------------------------------------------------------
		
		# 1 客户信息-业务基本信息
		if common.input_customer_base_info(self.page, self.data['applyVo']):
			self.log.info("录入基本信息完成")
		
		# 2 客户基本信息 - 借款人/共贷人/担保人信息
		self.custName = common.input_customer_borrow_info(self.page, self.data['custInfoVo'][0])[1]
		
		# 3 物业信息
		common.input_cwd_bbi_Property_info(self.page, self.data['applyPropertyInfoVo'][0],
		                                   self.data['applyCustCreditInfoVo'][0])
		# 提交
		common.submit(self.page)
		self.log.info("申请件录入完成提交")
		
		applyCode = common.get_applycode(self.page, self.custName)
		if applyCode:
			self.applyCode = applyCode
			self.log.info("申请件查询完成")
			print("applyCode:" + self.applyCode)
		# 流程监控
		result = common.process_monitor(self.page, applyCode)
		if result is not None:
			self.next_user_id = result
			self.log.info("完成流程监控查询")
		else:
			self.log.error("流程监控查询出错!")
			raise
		
		# ---------------------------------------------------------------------------------------
		# 	                        2. 风控审批流程
		# ---------------------------------------------------------------------------------------
		
		# 下一个处理人重新登录
		page = Login(result)
		
		# 分公司主管审批
		res = common.approval_to_review(page, applyCode, u'分公司主管审批通过', 0)
		if not res:
			self.log.error("审批失败")
			raise
		else:
			self.log.info("分公司主管审批通过!")
			self.get_next_user(page, applyCode)
		
		# 下一个处理人重新登录
		page = Login(self.next_user_id)
		
		# 分公司经理审批
		res = common.approval_to_review(page, applyCode, u'分公司经理回退到申请录入', 0)
		if not res:
			self.log.error("审批失败")
			raise
		else:
			self.log.info("分公司经理审批通过!")
			self.get_next_user(page, applyCode)
		
		# 下一个处理人重新登录
		page = Login(self.next_user_id)
		
		# 区域预复核审批
		res = common.approval_to_review(page, applyCode, u'区域预复核审批通过', 0)
		if not res:
			self.log.error("区域预复核审批失败!")
			raise
		else:
			self.log.info("区域预复核审批通过")
			self.get_next_user(page, applyCode)
		
		# 下一个处理人重新登录
		page = Login(self.next_user_id)
		
		# 审批经理审批通过
		res = common.approval_to_review(page, applyCode, u'审批经理审批通过', 0)
		if not res:
			self.log.error("审批经理审批失败!")
			raise
		else:
			self.log.info("审批经理审批通过成功!")
			self.get_next_user(page, applyCode)
		
		# -----------------------------------------------------------------------------
		# 	                        3. 合同打印
		# -----------------------------------------------------------------------------
		
		i_frame = 'bTabs_tab_house_commonIndex_todoList'
		
		rec_bank_info = dict(
				recBankNum=self.data['houseCommonLoanInfoList'][0]['recBankNum'],
				recPhone=self.data['houseCommonLoanInfoList'][0]['recPhone'],
				recBankProvince=self.data['houseCommonLoanInfoList'][0]['recBankProvince'],
				recBankDistrict=self.data['houseCommonLoanInfoList'][0]['recBankDistrict'],
				recBank=self.data['houseCommonLoanInfoList'][0]['recBank'],
				recBankBranch=self.data['houseCommonLoanInfoList'][0]['recBankBranch'],
				)
		
		# 扣款银行信息
		rep_bank_info = dict(
				rep_name=u'习近平',
				rep_id_num='420101198201013526',
				rep_bank_code='6210302082441017886',
				rep_phone='13686467482',
				provice=u'湖南省',
				district=u'长沙',
				rep_bank_name=u'中国银行',
				rep_bank_branch_name=u'北京支行',
				)
		
		# 下一个处理人重新登录
		page = Login(self.next_user_id)
		
		# 签约
		common.make_signing(page, self.applyCode, rec_bank_info)
		self.log.info("签约完成")
		# 查看下一步处理人
		self.get_next_user(page, applyCode)