mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +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() {
|
for key, value := range session.GetAll() {
|
||||||
attachments[key] = value
|
attachments[key] = value
|
||||||
}
|
}
|
||||||
session.Init() // clear step cache
|
|
||||||
stepResult.Attachments = attachments
|
stepResult.Attachments = attachments
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -164,7 +164,7 @@ type TestCaseSummary struct {
|
|||||||
InOut *TestCaseInOut `json:"in_out" yaml:"in_out"`
|
InOut *TestCaseInOut `json:"in_out" yaml:"in_out"`
|
||||||
Logs []interface{} `json:"logs,omitempty" yaml:"logs,omitempty"`
|
Logs []interface{} `json:"logs,omitempty" yaml:"logs,omitempty"`
|
||||||
Records []*StepResult `json:"records" yaml:"records"`
|
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.
|
// AddStepResult updates summary of StepResult.
|
||||||
|
|||||||
+6
-1
@@ -25,7 +25,12 @@ func TestGenHTMLReport(t *testing.T) {
|
|||||||
caseSummary2.AddStepResult(stepResult2)
|
caseSummary2.AddStepResult(stepResult2)
|
||||||
summary.AddCaseSummary(caseSummary2)
|
summary.AddCaseSummary(caseSummary2)
|
||||||
|
|
||||||
err := summary.GenHTMLReport()
|
err := summary.GenSummary()
|
||||||
|
if err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = summary.GenHTMLReport()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user