From 94f218edba5a913476c3360410f4103c97b2255f Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 21 May 2020 18:07:56 +0800 Subject: [PATCH] change: update allure report meta, title and description --- httprunner/runner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httprunner/runner.py b/httprunner/runner.py index b6ed0fbb..6ea435f4 100644 --- a/httprunner/runner.py +++ b/httprunner/runner.py @@ -198,6 +198,11 @@ class HttpRunner(object): self.__hrun_request_id = self.__hrun_request_id or f"HRUN-{uuid.uuid4()}" self.__session = self.__session or HttpSession() self.__session_variables = {} + + # update allure report meta + allure.dynamic.title(self.config.name) + allure.dynamic.description(f"Request ID Prefix: {self.__hrun_request_id}") + for step in self.teststeps: # update with config variables step.variables.update(self.config.variables)