mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 06:49:38 +08:00
feat: post json with functions
This commit is contained in:
@@ -114,7 +114,8 @@ func (r *Runner) runStepRequest(step *TStep) (stepData *StepData, err error) {
|
||||
v = append(v, data)
|
||||
}
|
||||
if step.Request.JSON != nil {
|
||||
v = append(v, req.BodyJSON(step.Request.JSON))
|
||||
jsonData := parseData(step.Request.JSON, step.Variables)
|
||||
v = append(v, req.BodyJSON(jsonData))
|
||||
}
|
||||
|
||||
for cookieName, cookieValue := range step.Request.Cookies {
|
||||
|
||||
Reference in New Issue
Block a user