mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 16:29:37 +08:00
support-> {"extract": ["head_cookie": "request.headers.cookie"]}
This commit is contained in:
@@ -178,7 +178,7 @@ class Runner(object):
|
|||||||
extractors = testcase_dict.get("extract", []) or testcase_dict.get("extractors", [])
|
extractors = testcase_dict.get("extract", []) or testcase_dict.get("extractors", [])
|
||||||
extracted_variables_mapping = resp_obj.extract_response(extractors)
|
extracted_variables_mapping = resp_obj.extract_response(extractors)
|
||||||
self.context.bind_extracted_variables(extracted_variables_mapping)
|
self.context.bind_extracted_variables(extracted_variables_mapping)
|
||||||
|
#print(self.context.testcase_parser.variables)
|
||||||
# validate
|
# validate
|
||||||
validators = testcase_dict.get("validate", []) or testcase_dict.get("validators", [])
|
validators = testcase_dict.get("validate", []) or testcase_dict.get("validators", [])
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user