mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 09:19:41 +08:00
change: update allure report meta, title and description
This commit is contained in:
@@ -198,6 +198,11 @@ class HttpRunner(object):
|
|||||||
self.__hrun_request_id = self.__hrun_request_id or f"HRUN-{uuid.uuid4()}"
|
self.__hrun_request_id = self.__hrun_request_id or f"HRUN-{uuid.uuid4()}"
|
||||||
self.__session = self.__session or HttpSession()
|
self.__session = self.__session or HttpSession()
|
||||||
self.__session_variables = {}
|
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:
|
for step in self.teststeps:
|
||||||
# update with config variables
|
# update with config variables
|
||||||
step.variables.update(self.config.variables)
|
step.variables.update(self.config.variables)
|
||||||
|
|||||||
Reference in New Issue
Block a user