add:增加allure的内容,1.附加log文件 2.添加请求和返回详情

This commit is contained in:
duanchao.bill
2022-06-08 22:07:24 +08:00
parent 15b086e314
commit c70fdec576
4 changed files with 74 additions and 51 deletions

View File

@@ -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