diff --git a/api/testsuiteexecution/v1/testsuiteexecution_types.go b/api/testsuiteexecution/v1/testsuiteexecution_types.go index f8d623ff..a9637bca 100644 --- a/api/testsuiteexecution/v1/testsuiteexecution_types.go +++ b/api/testsuiteexecution/v1/testsuiteexecution_types.go @@ -412,6 +412,12 @@ const ( type TestSuiteBatchStepExecutionResult struct { Step *TestSuiteBatchStep `json:"step,omitempty"` Execute []TestSuiteStepExecutionResult `json:"execute,omitempty"` + // step start time + StartTime metav1.Time `json:"startTime,omitempty"` + // step end time + EndTime metav1.Time `json:"endTime,omitempty"` + // step duration + Duration string `json:"duration,omitempty"` } // set of steps run in parallel diff --git a/api/testsuiteexecution/v1/zz_generated.deepcopy.go b/api/testsuiteexecution/v1/zz_generated.deepcopy.go index 027a52f4..1bfd05b3 100644 --- a/api/testsuiteexecution/v1/zz_generated.deepcopy.go +++ b/api/testsuiteexecution/v1/zz_generated.deepcopy.go @@ -1,4 +1,3 @@ -//go:build !ignore_autogenerated // +build !ignore_autogenerated /* @@ -492,6 +491,8 @@ func (in *TestSuiteBatchStepExecutionResult) DeepCopyInto(out *TestSuiteBatchSte (*in)[i].DeepCopyInto(&(*out)[i]) } } + in.StartTime.DeepCopyInto(&out.StartTime) + in.EndTime.DeepCopyInto(&out.EndTime) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteBatchStepExecutionResult. diff --git a/config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml b/config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml index 205a0f18..2802c827 100644 --- a/config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml +++ b/config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml @@ -277,6 +277,13 @@ spec: items: description: execution result returned from executor properties: + duration: + description: step duration + type: string + endTime: + description: step end time + format: date-time + type: string execute: items: description: execution result returned from executor @@ -752,6 +759,10 @@ spec: type: object type: object type: array + startTime: + description: step start time + format: date-time + type: string step: description: set of steps run in parallel properties: