From ac2ccc2c799a847df1f491dd7da8b4e656e98f99 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Thu, 1 Jun 2023 21:31:14 +0800 Subject: [PATCH] change: rename step start time field --- hrp/runner.go | 2 +- hrp/step.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hrp/runner.go b/hrp/runner.go index 51755dd8..0cd212bb 100644 --- a/hrp/runner.go +++ b/hrp/runner.go @@ -569,7 +569,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) error { stepStartTime := time.Now().Unix() stepResult, err = step.Run(r) stepResult.Name = stepName + loopIndex - stepResult.Time = stepStartTime + stepResult.StartTime = stepStartTime r.updateSummary(stepResult) } diff --git a/hrp/step.go b/hrp/step.go index ea467959..88641370 100644 --- a/hrp/step.go +++ b/hrp/step.go @@ -16,7 +16,7 @@ const ( type StepResult struct { Name string `json:"name" yaml:"name"` // step name - Time int64 `json:"time" yaml:"time"` // step time + StartTime int64 `json:"start_time" yaml:"time"` // step start 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)