mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
add jsonpath
This commit is contained in:
@@ -242,7 +242,9 @@ class ResponseObject(object):
|
|||||||
|
|
||||||
msg = "extract: {}".format(field)
|
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)
|
value = self._extract_field_with_regex(field)
|
||||||
else:
|
else:
|
||||||
value = self._extract_field_with_delimiter(field)
|
value = self._extract_field_with_delimiter(field)
|
||||||
|
|||||||
Reference in New Issue
Block a user