Example #1
0
 def __init__(self, *args, **kwargs):
     super(Allure, self).__init__(*args, **kwargs)
     self._host = host_tag()
     self._thread = thread_tag()
     self.lifecycle = AllureLifecycle()
     self.logger = AllureFileLogger("allure-result")
     self.listener = AllureListener(self.lifecycle)
Example #2
0
    def run_with_params(*params, **kwargs):
        cache = kwargs.get("cache", True)
        key = _get_hash('{thread}{module}{param}'.format(thread=thread_tag(), module=module, param=''.join(params)))
        if not request.config.cache.get(key, False):
            _runner(tmpdir.strpath, module, *params)
            if cache:
                request.config.cache.set(key, True)

                def clear_cache():
                    request.config.cache.set(key, False)
                request.addfinalizer(clear_cache)

        return AllureReport(tmpdir.strpath)
 def __init__(self):
     self.lifecycle = AllureLifecycle()
     self.host = host_tag()
     self.thread = thread_tag()
 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, config):
     self.config = config
     self.allure_logger = AllureReporter()
     self._cache = ItemCache()
     self._host = host_tag()
     self._thread = thread_tag()