diff --git a/hrp/step_mobile_ui.go b/hrp/step_mobile_ui.go index 5890eec4..8c22570d 100644 --- a/hrp/step_mobile_ui.go +++ b/hrp/step_mobile_ui.go @@ -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 }() diff --git a/hrp/summary.go b/hrp/summary.go index eaf541d7..6ae9cf69 100644 --- a/hrp/summary.go +++ b/hrp/summary.go @@ -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. diff --git a/hrp/summary_test.go b/hrp/summary_test.go index cf440f59..e85ea941 100644 --- a/hrp/summary_test.go +++ b/hrp/summary_test.go @@ -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) }