mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-10 02:09:51 +08:00
refactor: Run with config
This commit is contained in:
@@ -33,9 +33,10 @@ func convertBoomerTask(testcase *TestCase) *boomer.Task {
|
||||
Name: testcase.Config.Name,
|
||||
Weight: testcase.Config.Weight,
|
||||
Fn: func() {
|
||||
config := &testcase.Config
|
||||
for _, step := range testcase.TestSteps {
|
||||
start := time.Now()
|
||||
err := step.Run()
|
||||
err := step.Run(config)
|
||||
elapsed := time.Since(start).Nanoseconds() / int64(time.Millisecond)
|
||||
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user