mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
bugfix: extract_binds should be list
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user