mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
change: run mobile ui actions
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0+2412241212
|
||||
v5.0.0+2412241547
|
||||
|
||||
@@ -718,21 +718,8 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err
|
||||
stepResult.Elapsed = time.Since(start).Milliseconds()
|
||||
}()
|
||||
|
||||
// prepare actions
|
||||
var actions []uixt.MobileAction
|
||||
if mobileStep.Actions == nil {
|
||||
actions = []uixt.MobileAction{
|
||||
{
|
||||
Method: mobileStep.Method,
|
||||
Params: mobileStep.Params,
|
||||
},
|
||||
}
|
||||
} else {
|
||||
actions = mobileStep.Actions
|
||||
}
|
||||
|
||||
// run actions
|
||||
for _, action := range actions {
|
||||
for _, action := range mobileStep.Actions {
|
||||
select {
|
||||
case <-s.caseRunner.hrpRunner.caseTimeoutTimer.C:
|
||||
log.Warn().Msg("timeout in mobile UI runner")
|
||||
|
||||
Reference in New Issue
Block a user