mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 08:50:13 +08:00
add:增加allure的内容,1.附加log文件 2.添加请求和返回详情
This commit is contained in:
@@ -224,6 +224,8 @@ class SessionRunner(object):
|
||||
self.__run_step(step)
|
||||
finally:
|
||||
logger.info(f"generate testcase log: {self.__log_path}")
|
||||
if USE_ALLURE:
|
||||
allure.attach.file(self.__log_path, name='all log', attachment_type=allure.attachment_type.TEXT)
|
||||
|
||||
self.__duration = time.time() - self.__start_at
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user