mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
feat: data-driven.
This commit is contained in:
@@ -77,7 +77,7 @@ func (b *hrpBoomer) convertBoomerTask(testcase *TestCase) *boomer.Task {
|
|||||||
log.Error().Err(err).Msg("copy config data failed")
|
log.Error().Err(err).Msg("copy config data failed")
|
||||||
}
|
}
|
||||||
// iterate through all parameter iterators and update case variables
|
// iterate through all parameter iterators and update case variables
|
||||||
for _, it := range cfg.ParametersSetting.Iterators {
|
for _, it := range caseConfig.ParametersSetting.Iterators {
|
||||||
if it.HasNext() {
|
if it.HasNext() {
|
||||||
caseConfig.Variables = mergeVariables(it.Next(), caseConfig.Variables)
|
caseConfig.Variables = mergeVariables(it.Next(), caseConfig.Variables)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user