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.balance, FinancialAffairs.select) cls.bala_screen = ScreeningJude(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
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.balance, FinancialAffairs.city) cls.b_tab = CommoditiesJude(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
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
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]