change: convert StepResult Attachments to interface, for screenshots saving

This commit is contained in:
debugtalk
2022-08-31 23:16:46 +08:00
parent cf5761836a
commit 5fba76e6e3
8 changed files with 53 additions and 22 deletions

View File

@@ -54,7 +54,7 @@ func (s *StepTestCaseWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepRe
defer func() {
// update testcase summary
if err != nil {
stepResult.Attachment = err.Error()
stepResult.Attachments = err.Error()
}
}()