def setUpClass(cls):
     basepath = os.path.split(os.path.dirname(__file__))[1]
     cls.basename = os.path.splitext(os.path.basename(__file__))[0]
     cls.basename = basepath + "-" + cls.basename
     # I pass in the key of the subset, and the sheet name in the Excel document
     config = GeneralizeAssist.add_key(GeneralizeAssist.feedback, GeneralizeAssist.page)
     cls.f_label = MutuallyJude(config, cls.basename, Generalize)
     if "\\" in os.path.dirname(__file__):
         cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
     elif "/" in os.path.dirname(__file__):
         cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
Exemple #2
0
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename
        config = SystemSetting.add_key(SystemSetting.task, SystemSetting.page)

        cls.t_label = MutuallyJude(config, cls.basename, SystemParameter)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename

        # 传入子集的key,以及Excel文档中的sheet名字
        config = GeneralizeAssist.add_key(GeneralizeAssist.mutually, GeneralizeAssist.page)
        cls.m_label = MutuallyJude(config, cls.basename, Generalize)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
Exemple #4
0
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename

        # 传入子集的key,以及Excel文档中的sheet名字
        config = FinancialAffairs.add_key(FinancialAffairs.deposit,
                                          FinancialAffairs.page)
        cls.d_sur = MutuallyJude(config, cls.basename, Financial)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]

        pass
Exemple #5
0
    def setUpClass(cls):
        # 读取文件所在路径及文件名
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename

        # 读取配置文件
        config = FinancialAffairs.add_key(FinancialAffairs.trading,
                                          FinancialAffairs.page)

        # 实例化用例操作类
        cls.tra_sur = MutuallyJude(config, cls.basename, Financial)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]