mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-08 17:51:23 +08:00
change: convert StepResult Attachments to interface, for screenshots saving
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user