mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 17:29:34 +08:00
fix: output html report path optimization and failed to extract variables to session while load testing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user