diff --git a/hrp/runner.go b/hrp/runner.go index b30ca69e..8e23b588 100644 --- a/hrp/runner.go +++ b/hrp/runner.go @@ -564,8 +564,10 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) error { } // run step + stepStartTime := time.Now().Unix() stepResult, err = step.Run(r) stepResult.Name = stepName + loopIndex + stepResult.Time = stepStartTime r.updateSummary(stepResult) } diff --git a/hrp/step.go b/hrp/step.go index 4776e311..ea467959 100644 --- a/hrp/step.go +++ b/hrp/step.go @@ -16,6 +16,7 @@ const ( type StepResult struct { Name string `json:"name" yaml:"name"` // step name + Time int64 `json:"time" yaml:"time"` // step time StepType StepType `json:"step_type" yaml:"step_type"` // step type, testcase/request/transaction/rendezvous Success bool `json:"success" yaml:"success"` // step execution result Elapsed int64 `json:"elapsed_ms" yaml:"elapsed_ms"` // step execution time in millisecond(ms)