#78: merge extractors in test with api extractors

This commit is contained in:
httprunner
2018-01-16 20:36:27 +08:00
parent 318d5e6492
commit 85a76a12d2
3 changed files with 73 additions and 3 deletions

View File

@@ -102,9 +102,7 @@ class Runner(object):
raise exception.ParamsError("URL or METHOD missed!")
run_times = int(testcase_dict.get("times", 1))
extractors = testcase_dict.get("extract") \
or testcase_dict.get("extractors") \
or testcase_dict.get("extract_binds", [])
extractors = testcase_dict.get("extract", [])
validators = testcase_dict.get("validate", [])
setup_actions = testcase_dict.get("setup", [])
teardown_actions = testcase_dict.get("teardown", [])