mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-09 01:17:30 +08:00
change: run mobile ui actions
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0+2412241212
|
v5.0.0+2412241547
|
||||||
|
|||||||
+1
-14
@@ -718,21 +718,8 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err
|
|||||||
stepResult.Elapsed = time.Since(start).Milliseconds()
|
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
|
// run actions
|
||||||
for _, action := range actions {
|
for _, action := range mobileStep.Actions {
|
||||||
select {
|
select {
|
||||||
case <-s.caseRunner.hrpRunner.caseTimeoutTimer.C:
|
case <-s.caseRunner.hrpRunner.caseTimeoutTimer.C:
|
||||||
log.Warn().Msg("timeout in mobile UI runner")
|
log.Warn().Msg("timeout in mobile UI runner")
|
||||||
|
|||||||
Reference in New Issue
Block a user