Exemple #1
0
 def search(self):
     bys_pAudit2, values_pAudit2 = self.childConfigXML("银行转账菜单", "审核状态")
     bys_pAudit3, values_pAudit3 = self.childConfigXML("银行转账菜单", "未审核")
     bys_pAudit4, values_pAudit4 = self.childConfigXML("银行转账菜单", "查询")
     bys_pAudit5, values_pAudit5 = self.childConfigXML("银行转账菜单", "获取数据总条数")
     bys_pAudit6, values_pAudit6 = self.childConfigXML("银行转账菜单", "审核按钮")
     mptree = NCTransferAudit(self.driver)
     try:
         mptree.get_elements(bys_pAudit2, values_pAudit2)
         mptree.points_managers(bys_pAudit3, values_pAudit3)
         mptree.input_customer_name(bys_pAudit2, values_pAudit2)
         # mptree.input_banknum(bys_pAudit2, values_pAudit2)
         mptree.points_managers(bys_pAudit4, values_pAudit4)
         # test_NCTransferAudit(self.driver).audit(bys_pAudit6, values_pAudit6)
         global text
         text = BasePage(self.driver).getElementByElement(
             bys_pAudit5, values_pAudit5).text
         print("总条数是:", text)
         test_NCTransferAudit(self.driver).audit(bys_pAudit6,
                                                 values_pAudit6)
     except Exception:
         img_path = self.childConfigImgPath()
         mptree.page.save_img(img_path,
                              str(int(TestDateTime().time_stamp())))
         print(traceback.format_exc())
Exemple #2
0
 def auditPass(self):
     bys_pAudit8, values_pAudit8 = self.childConfigXML("银行转账菜单", "通过按钮")
     mptree = NCTransferAudit(self.driver)
     try:
         mptree.points_managers(bys_pAudit8, values_pAudit8)
         time.sleep(2)
     except Exception:
         img_path = self.childConfigImgPath()
         mptree.page.save_img(img_path,
                              str(int(TestDateTime().time_stamp())))
         print(traceback.format_exc())
Exemple #3
0
    def get_parent_transfer_audit(self):
        """
        父节点银行转账审核
        :return:
        """
        # 获取XML中相关信息
        bys_pAudit, values_pAudit = self.childConfigXML("银行转账菜单", "父节点银行转账审核")
        bys_pAudit1, values_pAudit1 = self.childConfigXML(
            "银行转账菜单", "子节点银行转账审核")
        mptree = NCTransferAudit(self.driver)
        try:
            mptree.points_managers(bys_pAudit, values_pAudit)
            mptree.points_managers(bys_pAudit1, values_pAudit1)
            test_NCTransferAudit(self.driver).search()
            time.sleep(3)

        except Exception:
            img_path = self.childConfigImgPath()
            mptree.page.save_img(img_path,
                                 str(int(TestDateTime().time_stamp())))
            print(traceback.format_exc())
Exemple #4
0
    def newRule(self):

        dis = NCTransferAudit(self.driver)
        bys_pAudit1, values_pAudit1 = self.childConfigXML("跟投管理菜单", "跟投管理")
        bys_pAudit2, values_pAudit2 = self.childConfigXML("跟投管理菜单", "跟投规则管理")
        bys_pAudit3, values_pAudit3 = self.childConfigXML("跟投管理菜单", "跟投分配规则")

        try:
            dis.points_managers(bys_pAudit1, values_pAudit1)
            time.sleep(2)
            dis.points_managers(bys_pAudit2, values_pAudit2)
            time.sleep(2)
            dis.points_managers(bys_pAudit3, values_pAudit3)
            time.sleep(2)

        except Exception:
            print(traceback.format_exc())