fix: run boomer test

This commit is contained in:
debugtalk
2021-11-14 21:40:05 +08:00
parent 16347d6796
commit 4827ebf284
3 changed files with 29 additions and 24 deletions

View File

@@ -77,11 +77,12 @@ func TestRunRequestRun(t *testing.T) {
config := &TConfig{
BaseURL: "https://postman-echo.com",
}
extractedVariables := make(map[string]interface{})
runner := NewRunner(t).SetDebug(true)
if _, err := runner.runStep(stepGET, config); err != nil {
if _, err := runner.runStep(stepGET, config, extractedVariables); err != nil {
t.Fatalf("tStep.Run() error: %s", err)
}
if _, err := runner.runStep(stepPOSTData, config); err != nil {
if _, err := runner.runStep(stepPOSTData, config, extractedVariables); err != nil {
t.Fatalf("tStepPOSTData.Run() error: %s", err)
}
}