add each parameter selection strategy.

This commit is contained in:
徐聪
2022-01-05 15:49:49 +08:00
parent 406aab1dd8
commit a315884b62
2 changed files with 1 additions and 2 deletions

View File

@@ -4,7 +4,6 @@ import (
"time"
"github.com/jinzhu/copier"
"github.com/rs/zerolog/log"
"github.com/httprunner/hrp/internal/boomer"

View File

@@ -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() {