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

@@ -258,7 +258,7 @@ func runStepWebSocket(r *SessionRunner, step *TStep) (stepResult *StepResult, er
defer func() {
// update testcase summary
if err != nil {
stepResult.Attachment = err.Error()
stepResult.Attachments = err.Error()
}
// update summary
r.summary.Records = append(r.summary.Records, stepResult)