mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
fix: failed to parse in testcase
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user