From 8ec904fcd7d1199afe087d6cfd4c92be780e0437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=81=AA?= Date: Wed, 5 Jan 2022 15:49:49 +0800 Subject: [PATCH] add each parameter selection strategy. --- boomer.go | 1 - runner.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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() {