mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-05 07:49:37 +08:00
feat: print request and response details when running API cases
This commit is contained in:
@@ -227,12 +227,16 @@ class SessionRunner(object):
|
||||
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)
|
||||
allure.attach.file(
|
||||
self.__log_path,
|
||||
name="all log",
|
||||
attachment_type=allure.attachment_type.TEXT,
|
||||
)
|
||||
|
||||
self.__duration = time.time() - self.__start_at
|
||||
return self
|
||||
|
||||
|
||||
class HttpRunner(SessionRunner):
|
||||
# split SessionRunner to keep consistant with golang version
|
||||
# split SessionRunner to keep consistent with golang version
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user