mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
change: update summary tags
This commit is contained in:
@@ -652,7 +652,6 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
|
||||
for key, value := range session.GetAll() {
|
||||
attachments[key] = value
|
||||
}
|
||||
session.Init() // clear step cache
|
||||
stepResult.Attachments = attachments
|
||||
}()
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ type TestCaseSummary struct {
|
||||
InOut *TestCaseInOut `json:"in_out" yaml:"in_out"`
|
||||
Logs []interface{} `json:"logs,omitempty" yaml:"logs,omitempty"`
|
||||
Records []*StepResult `json:"records" yaml:"records"`
|
||||
RootDir string `json:"root_dir" yaml:"root_dir"`
|
||||
RootDir string `json:"root_dir,omitempty" yaml:"root_dir,omitempty"`
|
||||
}
|
||||
|
||||
// AddStepResult updates summary of StepResult.
|
||||
|
||||
@@ -25,7 +25,12 @@ func TestGenHTMLReport(t *testing.T) {
|
||||
caseSummary2.AddStepResult(stepResult2)
|
||||
summary.AddCaseSummary(caseSummary2)
|
||||
|
||||
err := summary.GenHTMLReport()
|
||||
err := summary.GenSummary()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
err = summary.GenHTMLReport()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user