feat: data-driven.

This commit is contained in:
徐聪
2022-01-04 22:00:47 +08:00
parent 185c891c3f
commit 659b602122
4 changed files with 17 additions and 14 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ func (b *hrpBoomer) convertBoomerTask(testcase *TestCase) *boomer.Task {
if err := copier.Copy(caseConfig, cfg); err != nil {
log.Error().Err(err).Msg("copy config data failed")
}
for _, it := range cfg.ParametersSetting.Iterator {
// iterate through all parameter iterators and update case variables
for _, it := range cfg.ParametersSetting.Iterators {
if it.HasNext() {
caseConfig.Variables = mergeVariables(it.Next(), caseConfig.Variables)
}