mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 17:49:32 +08:00
support variable reference during extraction
This commit is contained in:
@@ -365,7 +365,7 @@ func runStepWebSocket(r *SessionRunner, step *TStep) (stepResult *StepResult, er
|
||||
|
||||
// extract variables from response
|
||||
extractors := step.Extract
|
||||
extractMapping := respObj.Extract(extractors)
|
||||
extractMapping := respObj.Extract(extractors, stepVariables)
|
||||
stepResult.ExportVars = extractMapping
|
||||
|
||||
// override step variables with extracted variables
|
||||
|
||||
Reference in New Issue
Block a user