#52: validator expect field support reference variable

This commit is contained in:
httprunner
2017-12-13 01:22:43 +08:00
parent ca9f793fb3
commit 7a45b4078b
2 changed files with 7 additions and 2 deletions

View File

@@ -230,6 +230,8 @@ class Context(object):
except exception.ParseResponseError:
raise exception.ParseResponseError("failed to extract check item in response!")
expect_value = self.testcase_parser.eval_content_variables(expect_value)
validator_dict = {
"check_item": check_item,
"check_value": check_value,