mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
fix: _search_jmespath add expr verificaion
_search_jmespath():input-->output before:"success"-->None after:"success"-->"success"
This commit is contained in:
@@ -151,6 +151,8 @@ class ResponseObject(object):
|
|||||||
"cookies": self.cookies,
|
"cookies": self.cookies,
|
||||||
"body": self.body,
|
"body": self.body,
|
||||||
}
|
}
|
||||||
|
if not expr.startswith(tuple(resp_obj_meta.keys())):
|
||||||
|
return expr
|
||||||
try:
|
try:
|
||||||
check_value = jmespath.search(expr, resp_obj_meta)
|
check_value = jmespath.search(expr, resp_obj_meta)
|
||||||
except JMESPathError as ex:
|
except JMESPathError as ex:
|
||||||
|
|||||||
Reference in New Issue
Block a user