fix: failed to parse in testcase

This commit is contained in:
xucong053
2022-10-08 19:31:31 +08:00
committed by xucong053
parent 942c7d2b2b
commit 4c2f976f1f
3 changed files with 32 additions and 0 deletions
+9
View File
@@ -524,6 +524,15 @@ func runStepIOS(s *SessionRunner, step *TStep) (stepResult *StepResult, err erro
}
parser := s.GetParser()
// parse device udid
if step.IOS.IOSDevice.UDID != "" {
udid, err := parser.ParseString(step.IOS.IOSDevice.UDID, stepVariables)
if err != nil {
return stepResult, err
}
step.IOS.IOSDevice.UDID = udid.(string)
}
// init wdaClient driver
wdaClient, err := s.hrpRunner.initUIClient(&step.IOS.IOSDevice)
if err != nil {