change: remove session data success

This commit is contained in:
lilong.129
2024-11-19 20:52:35 +08:00
parent b968e7be61
commit 3e9d4fee9e
4 changed files with 1 additions and 6 deletions

View File

@@ -1 +1 @@
v5.0.0+2411191057
v5.0.0+2411192052

View File

@@ -427,7 +427,6 @@ func runStepRequest(r *SessionRunner, step IStep) (stepResult *StepResult, err e
err = respObj.Validate(stepRequest.Validators, stepRequest.Variables)
sessionData.Validators = respObj.validationResults
if err == nil {
sessionData.Success = true
stepResult.Success = true
}
stepResult.ContentSize = resp.ContentLength

View File

@@ -433,13 +433,11 @@ func runStepWebSocket(r *SessionRunner, step IStep) (stepResult *StepResult, err
err = respObj.Validate(stepWebSocket.Validators, variables)
sessionData.Validators = respObj.validationResults
if err == nil {
sessionData.Success = true
stepResult.Success = true
}
stepResult.ContentSize = getContentSize(resp)
stepResult.Data = sessionData
} else {
sessionData.Success = true
stepResult.Success = true
}

View File

@@ -229,13 +229,11 @@ type TestCaseInOut struct {
func newSessionData() *SessionData {
return &SessionData{
Success: false,
ReqResps: &ReqResps{},
}
}
type SessionData struct {
Success bool `json:"success" yaml:"success"`
ReqResps *ReqResps `json:"req_resps" yaml:"req_resps"`
Address *Address `json:"address,omitempty" yaml:"address,omitempty"` // TODO
Validators []*ValidationResult `json:"validators,omitempty" yaml:"validators,omitempty"`