diff --git a/httprunner/response.py b/httprunner/response.py index 7de9bd03..e6784149 100644 --- a/httprunner/response.py +++ b/httprunner/response.py @@ -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: