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
@@ -93,7 +93,7 @@ type StepResult struct {
Data interface{} `json:"data,omitempty" yaml:"data,omitempty"` // session data or slice of step data
ContentSize int64 `json:"content_size" yaml:"content_size"` // response body length
ExportVars map[string]interface{} `json:"export_vars,omitempty" yaml:"export_vars,omitempty"` // extract variables
Attachment string `json:"attachment,omitempty" yaml:"attachment,omitempty"` // step error information
Attachments interface{} `json:"attachments,omitempty" yaml:"attachments,omitempty"` // store extra step information, such as error message or screenshots
}
// TStep represents teststep data structure.