support variable reference during extraction

This commit is contained in:
buyuxiang
2022-06-24 17:46:22 +08:00
parent 2caf5d5159
commit 2d105248fb
5 changed files with 27 additions and 25 deletions

View File

@@ -419,7 +419,7 @@ func runStepRequest(r *SessionRunner, step *TStep) (stepResult *StepResult, err
// 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