bugfix: extract_binds should be list

This commit is contained in:
debugtalk
2017-09-04 22:04:57 +08:00
parent 1f44b1997d
commit 154e050a60

View File

@@ -78,7 +78,7 @@ class Runner(object):
},
"body": '{"name": "user", "password": "123456"}'
},
"extract_binds": {}, # optional
"extract_binds": [], # optional
"validators": [] # optional
}
@return True or raise exception during test
@@ -93,7 +93,7 @@ class Runner(object):
raise exception.ParamsError("URL or METHOD missed!")
run_times = int(testcase.get("times", 1))
extract_binds = testcase.get("extract_binds", {})
extract_binds = testcase.get("extract_binds", [])
validators = testcase.get("validators", [])
for _ in range(run_times):