refactor: CaseRunner, parseConfig

This commit is contained in:
lilong.129
2024-08-20 12:09:15 +08:00
parent 9efbd04055
commit 263ee681be
8 changed files with 70 additions and 124 deletions

View File

@@ -85,7 +85,7 @@ func runStepShell(r *SessionRunner, step *TStep) (stepResult *StepResult, err er
ContentSize: 0,
}
vars := r.caseRunner.parsedConfig.Variables
vars := r.caseRunner.Config.Variables
for key, value := range vars {
os.Setenv(key, fmt.Sprintf("%v", value))
}