chore: identifier

* chore: identifier
* chore: identifier

https://code.byted.org/iesqa/httprunner/merge_requests/35
This commit is contained in:
曹帅
2024-04-29 08:06:38 +00:00
parent 9a3023bdd9
commit 93dc17b8de
4 changed files with 17 additions and 1 deletions
+14
View File
@@ -599,8 +599,22 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
"osType": osType,
})
identifer := mobileStep.Identifier
if mobileStep.Options != nil && identifer == "" {
identifer = mobileStep.Options.Identifier
}
if len(mobileStep.Actions) != 0 && identifer == "" {
for _, action := range mobileStep.Actions {
if action.Identifier != "" {
identifer = action.Identifier
break
}
}
}
stepResult = &StepResult{
Name: step.Name,
Identifier: identifer,
StepType: StepType(osType),
Success: false,
ContentSize: 0,