def __init__(self, logger_path=DEFAULT_OUTPUT_PATH): self.reporter = AllureReporter() self.logger = AllureFileLogger(logger_path) self.stack = [] self.items_log = {} self.pool_id = None self.links = OrderedDict() plugin_manager.register(self.reporter) plugin_manager.register(self.logger)
def __init__(self, result_dir): self.logger = AllureReporter() file_logger = AllureFileLogger(result_dir) plugin_manager.register(file_logger) plugin_manager.register(self) self.current_group_uuid = None self.current_before_uuid = None self.current_scenario_uuid = None self.current_step_uuid = None
def process(self, structured_data, file_modication_datetime=None): plugin_manager.register(self.listener) plugin_manager.register(self.logger) for test_case in structured_data["tests"]: self.process_test_case( test_case, file_modication_datetime=file_modication_datetime) plugin_manager.unregister(plugin=self.listener) plugin_manager.unregister(plugin=self.logger)
def register_allure_plugins(self): plugin_manager.register(self.listener) plugin_manager.register(self.logger)
def register(cls): if cls not in plugin_manager.get_plugins(): plugin_manager.register(cls)
def register_allure_plugins(self): self.fileLoger = AllureFileLogger("examples") self.logger = AllureMemoryLogger() plugin_manager.register(self.fileLoger) plugin_manager.register(self.listener) plugin_manager.register(self.logger)