feat: data-driven.

This commit is contained in:
徐聪
2021-12-30 22:31:39 +08:00
parent 57816f504b
commit cfc46b0a63
6 changed files with 39 additions and 30 deletions

View File

@@ -143,7 +143,7 @@ func (r *caseRunner) run() error {
}
cfg := config.ToStruct()
log.Info().Str("testcase", config.Name()).Msg("run testcase start")
for it := cfg.ParameterIterator; it.HasNext(); {
for it := cfg.ParametersSetting.Iterator; it.HasNext(); {
cfg.Variables = mergeVariables(it.Next(), cfg.Variables)
r.startTime = time.Now()
for index := range r.TestCase.TestSteps {