mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 10:49:43 +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,
|
||||
"body": self.body,
|
||||
}
|
||||
if not expr.startswith(tuple(resp_obj_meta.keys())):
|
||||
return expr
|
||||
try:
|
||||
check_value = jmespath.search(expr, resp_obj_meta)
|
||||
except JMESPathError as ex:
|
||||
|
||||
Reference in New Issue
Block a user