mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
bugfix: extract_binds should be list
This commit is contained in:
+2
-2
@@ -78,7 +78,7 @@ class Runner(object):
|
|||||||
},
|
},
|
||||||
"body": '{"name": "user", "password": "123456"}'
|
"body": '{"name": "user", "password": "123456"}'
|
||||||
},
|
},
|
||||||
"extract_binds": {}, # optional
|
"extract_binds": [], # optional
|
||||||
"validators": [] # optional
|
"validators": [] # optional
|
||||||
}
|
}
|
||||||
@return True or raise exception during test
|
@return True or raise exception during test
|
||||||
@@ -93,7 +93,7 @@ class Runner(object):
|
|||||||
raise exception.ParamsError("URL or METHOD missed!")
|
raise exception.ParamsError("URL or METHOD missed!")
|
||||||
|
|
||||||
run_times = int(testcase.get("times", 1))
|
run_times = int(testcase.get("times", 1))
|
||||||
extract_binds = testcase.get("extract_binds", {})
|
extract_binds = testcase.get("extract_binds", [])
|
||||||
validators = testcase.get("validators", [])
|
validators = testcase.get("validators", [])
|
||||||
|
|
||||||
for _ in range(run_times):
|
for _ in range(run_times):
|
||||||
|
|||||||
Reference in New Issue
Block a user