From 9d73af4f62e50ca5ff3225e1dd4f24d92c7ccb1e Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Thu, 3 Jul 2025 19:29:46 +0800 Subject: [PATCH] change: remove unused step identifier --- step.go | 1 - step_ui.go | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/step.go b/step.go index c82be894..7e5ec98b 100644 --- a/step.go +++ b/step.go @@ -71,7 +71,6 @@ type ActionResult struct { // one testcase contains one or multiple steps type StepResult struct { Name string `json:"name" yaml:"name"` // step name - Identifier string `json:"identifier,omitempty" yaml:"identifier,omitempty"` // step identifier StartTime int64 `json:"start_time" yaml:"time"` // step start time in millisecond(ms) StepType StepType `json:"step_type" yaml:"step_type"` // step type, testcase/request/transaction/rendezvous Success bool `json:"success" yaml:"success"` // step execution result diff --git a/step_ui.go b/step_ui.go index bc729c48..ea641084 100644 --- a/step_ui.go +++ b/step_ui.go @@ -755,24 +755,6 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err return stepResult, err } - identifier := mobileStep.Identifier - if mobileStep.Options != nil && identifier == "" { - identifier = mobileStep.Options.Identifier - } - if len(mobileStep.Actions) != 0 && identifier == "" { - for _, action := range mobileStep.Actions { - if action.Identifier != "" { - identifier = action.Identifier - break - } - if action.Options != nil && action.Options.Identifier != "" { - identifier = action.Options.Identifier - break - } - } - } - stepResult.Identifier = identifier - defer func() { attachments := uixt.Attachments{} if err != nil {