change: remove unused step identifier

This commit is contained in:
lilong.129
2025-07-03 19:29:46 +08:00
parent 7393f7aab3
commit 9d73af4f62
2 changed files with 0 additions and 19 deletions

View File

@@ -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

View File

@@ -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 {