mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 03:30:01 +08:00
feat: data-driven.
This commit is contained in:
@@ -47,6 +47,9 @@ func (b *hrpBoomer) Run(testcases ...ITestCase) {
|
||||
}
|
||||
cfg := testcase.Config.ToStruct()
|
||||
parameters := getParameters(testcase.Config)
|
||||
if parameters == nil {
|
||||
parameters = []map[string]interface{}{{}}
|
||||
}
|
||||
for _, parameter := range parameters {
|
||||
cfg.Variables = mergeVariables(parameter, cfg.Variables)
|
||||
task := b.convertBoomerTask(testcase)
|
||||
|
||||
Reference in New Issue
Block a user