diff --git a/boomer.go b/boomer.go index 9b07d098..0976d134 100644 --- a/boomer.go +++ b/boomer.go @@ -4,7 +4,6 @@ import ( "time" "github.com/jinzhu/copier" - "github.com/rs/zerolog/log" "github.com/httprunner/hrp/internal/boomer" diff --git a/runner.go b/runner.go index ba3dd953..8faf84ef 100644 --- a/runner.go +++ b/runner.go @@ -105,8 +105,8 @@ func (r *hrpRunner) Run(testcases ...ITestCase) error { log.Error().Interface("parameters", cfg.Parameters).Err(err).Msg("parse config parameters failed") return err } + // 在runner模式下,指定整体策略,cfg.ParametersSetting.Iterators仅包含一个CartesianProduct的迭代器 for it := cfg.ParametersSetting.Iterators[0]; it.HasNext(); { - // iterate through all parameter iterators and update case variables // iterate through all parameter iterators and update case variables for _, it := range cfg.ParametersSetting.Iterators { if it.HasNext() {