mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-21 08:10:24 +08:00
refactor: extract field
This commit is contained in:
@@ -191,7 +191,7 @@ def query_json(json_content, query, delimiter='.'):
|
||||
@return queried result
|
||||
"""
|
||||
raise_flag = False
|
||||
response_body = u"from: {}\n".format(json_content)
|
||||
response_body = u"response body: {}\n".format(json_content)
|
||||
try:
|
||||
for key in query.split(delimiter):
|
||||
if isinstance(json_content, (list, str)):
|
||||
|
||||
Reference in New Issue
Block a user