mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 22:39:42 +08:00
change: remove session data success
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0+2411191057
|
||||
v5.0.0+2411192052
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user