mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 16:29:37 +08:00
feat: add keyword 'body' to reference response body
change: unify response field(content/json/text) to 'body' in html report
This commit is contained in:
@@ -175,7 +175,7 @@ class ResponseObject(object):
|
||||
raise exceptions.ExtractFailure(err_msg)
|
||||
|
||||
# response body
|
||||
elif top_query in ["content", "text", "json"]:
|
||||
elif top_query in ["body", "content", "text", "json"]:
|
||||
try:
|
||||
body = self.json
|
||||
except exceptions.JSONDecodeError:
|
||||
|
||||
Reference in New Issue
Block a user