mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
refactor: merge step variables with session variables
This commit is contained in:
@@ -51,6 +51,7 @@ func (s *StepTestCaseWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepRe
|
||||
StepType: stepTypeTestCase,
|
||||
Success: false,
|
||||
}
|
||||
stepVariables := s.step.Variables
|
||||
|
||||
defer func() {
|
||||
// update testcase summary
|
||||
@@ -59,11 +60,6 @@ func (s *StepTestCaseWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepRe
|
||||
}
|
||||
}()
|
||||
|
||||
stepVariables, err := r.MergeStepVariables(s.step.Variables)
|
||||
if err != nil {
|
||||
return stepResult, err
|
||||
}
|
||||
|
||||
stepTestCase := s.step.TestCase.(*TestCase)
|
||||
|
||||
// copy testcase to avoid data racing
|
||||
|
||||
Reference in New Issue
Block a user