change: update summary tags

This commit is contained in:
lilong.129
2024-09-04 14:10:12 +08:00
parent 73e5c0acf6
commit ba8167410c
3 changed files with 7 additions and 3 deletions

View File

@@ -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
}()

View File

@@ -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.

View File

@@ -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)
}