def before_all(context): if not os.path.exists(LOG_DIR): os.makedirs(LOG_DIR) report_dir_name = ALLURE_REPORT_DIR context.allure = AllureReporter() file_logger = AllureFileLogger(report_dir_name) allure_commons.plugin_manager.register(file_logger)
def __init__(self, behave_config): self.behave_config = behave_config self.logger = AllureReporter() self.current_step_uuid = None self.execution_context = Context() self.fixture_context = Context() self.steps = deque()
def __init__(self, result_dir): self.logger = AllureReporter() file_logger = AllureFileLogger(result_dir) register(file_logger) self.current_group_uuid = None self.current_before_uuid = None self.current_scenario_uuid = None self.current_step_uuid = None
def __init__(self, default_test_suite_name=None, default_parent_test_suite_name=None, default_sub_suite_name=None): self.allure_logger = AllureReporter() self._cache = ItemCache() self.default_test_suite_name = default_test_suite_name self.default_parent_test_suite_name = default_parent_test_suite_name self.default_sub_suite_name = default_sub_suite_name self.container_uuid=str(uuid4()) self.current_testcase_container_uuid = None self.parent_test_listener = None
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, behave_config): self.behave_config = behave_config self.issue_pattern = behave_config.userdata.get( 'AllureFormatter.issue_pattern', None) self.link_pattern = behave_config.userdata.get( 'AllureFormatter.link_pattern', None) self.logger = AllureReporter() self.current_step_uuid = None self.current_scenario_uuid = None self.execution_context = Context() self.fixture_context = Context() self.steps = deque()
def __init__(self, logger_path=DEFAULT_OUTPUT_PATH): self.stack = [] self.items_log = {} self.pool_id = None self.links = OrderedDict() self._previous_keyword_failed = False self._traceback_message = None self.reporter = AllureReporter() self.listener = AllureListener(self.reporter) self.logger = AllureFileLogger(logger_path) allure_commons.plugin_manager.register(self.logger) allure_commons.plugin_manager.register(self.listener)
def __init__(self, behave_config): self.behave_config = behave_config self.issue_pattern = behave_config.userdata.get( 'AllureFormatter.issue_pattern', None) self.link_pattern = behave_config.userdata.get( 'AllureFormatter.link_pattern', None) self.hide_excluded = behave_config.userdata.get( 'AllureFormatter.hide_excluded', False) self.logger = AllureReporter() self.current_step_uuid = None self.current_scenario_uuid = None self.group_context = GroupContext(self.logger) self.group_context.enter() self.steps = deque()
def __init__(self): report_root_path = os.path.join(os.getcwd(), "reportsxxxx") report_dir_path = os.path.join( report_root_path, datetime.now().strftime('%Y-%m-%d-%H-%M-%S')) if not os.path.isdir(report_dir_path): os.makedirs(report_dir_path) for f in os.listdir(report_dir_path): f = os.path.join(report_dir_path, f) if os.path.isfile(f): os.unlink(f) elif os.path.isdir(f): shutil.rmtree(f) self.file_logger = AllureFileLogger(report_dir_path) allure_commons.plugin_manager.register(self.file_logger) self.allure_logger = AllureReporter() self.start_at = time.time()
def __init__(self, config): self.config = config self.allure_logger = AllureReporter() self._cache = ItemCache()
def __init__(self, config): self.config = config self.allure_logger = AllureReporter() self._cache = ItemCache() self._host = host_tag() self._thread = thread_tag()
def __init__(self): self.allure_lifecycle = AllureReporter()