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 17:03:49 +08:00
parent 60f921dfd1
commit 65c4ac64e9
5 changed files with 65 additions and 13 deletions

View File

@@ -182,6 +182,14 @@ func (r *HRPRunner) Run(testcases ...ITestCase) error {
}
s.Time.Duration = time.Since(s.Time.StartAt).Seconds()
// update the report output path
pluginPath, err := locatePlugin(testcases[0].GetPath())
if err == nil {
outputPath, _ := filepath.Split(pluginPath)
summaryPath = filepath.Join(outputPath, summaryPath)
reportPath = filepath.Join(outputPath, reportPath)
}
// save summary
if r.saveTests {
dir, _ := filepath.Split(summaryPath)