fix: output html report path optimization and failed to extract variables to session while load testing

This commit is contained in:
xucong053
2022-04-13 22:00:15 +08:00
parent 14bad9e5c3
commit 1c16df5ab0
5 changed files with 65 additions and 13 deletions
+5 -1
View File
@@ -125,7 +125,7 @@ func (b *HRPBoomer) convertBoomerTask(testcase *TestCase, rendezvousList []*Rend
transactionSuccess = false
if b.hrpRunner.failfast {
log.Error().Msg("abort running due to failfast setting")
log.Error().Err(err).Msg("abort running due to failfast setting")
break
}
log.Warn().Err(err).Msg("run step failed, continue next step")
@@ -148,6 +148,10 @@ func (b *HRPBoomer) convertBoomerTask(testcase *TestCase, rendezvousList []*Rend
} else {
// request or testcase step
b.RecordSuccess(string(step.Type()), step.Name(), stepResult.Elapsed, stepResult.ContentSize)
// update extracted variables
for k, v := range stepResult.ExportVars {
sessionRunner.sessionVariables[k] = v
}
}
}
endTime := time.Now()