mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
add jsonpath
This commit is contained in:
@@ -242,7 +242,9 @@ class ResponseObject(object):
|
||||
|
||||
msg = "extract: {}".format(field)
|
||||
|
||||
if text_extractor_regexp_compile.match(field):
|
||||
if field.startswith("$"):
|
||||
value = self._extract_field_with_jsonpath(field)
|
||||
elif text_extractor_regexp_compile.match(field):
|
||||
value = self._extract_field_with_regex(field)
|
||||
else:
|
||||
value = self._extract_field_with_delimiter(field)
|
||||
|
||||
Reference in New Issue
Block a user