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 = GoodsManagement.add_key(GoodsManagement.evaluation, GoodsManagement.label) cls.box_label = LabelJude(config,cls.basename, CityGoodsPage) 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 = GoodsManagement.add_key(GoodsManagement.emptybarrel, GoodsManagement.select) cls.empty_screen = ScreeningJude(config, cls.basename, CityGoodsPage) 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 = GoodsManagement.add_key(GoodsManagement.citys, GoodsManagement.city) cls.city_tab = CommoditiesJude(config, cls.basename, CityGoodsPage) 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 _rou_background(self): """ father_tags: 定义菜单的所在位置 child_tags : 定义模块的所在位置 :return: 暂时没有返回值 """ argument = GoodsManagement.get_argument_data() self.father_tags = argument['father'] self.a_click.css_click(self.driver, self.father_tags) self.child_tags = argument[ GoodsManagement.INVENTORY['module']]['child'] self.a_click.css_click(self.driver, self.child_tags) pass
def read_excle_data(): GoodsManagement.add_key(GoodsManagement.emptybarrel, GoodsManagement.jump) excle_data = GoodsManagement._excel_Data('序号') return excle_data
def read_excle_data(): GoodsManagement.add_key(GoodsManagement.entersales, GoodsManagement.jump) excle_data = GoodsManagement._excel_Data('序号') return excle_data