change: convert StepResult Attachments to interface, for screenshots saving

This commit is contained in:
debugtalk
2022-09-01 00:44:39 +08:00
parent 5118d6d38d
commit 337afc001f
8 changed files with 53 additions and 22 deletions
+1 -1
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)