mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
feat: 支持获取剪贴版
This commit is contained in:
-16
@@ -1043,22 +1043,6 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if action.Method == option.ACTION_StartToGoal {
|
|
||||||
planningResults, err := uiDriver.StartToGoal(ctx,
|
|
||||||
action.Params.(string), action.GetOptions()...)
|
|
||||||
actionResult.Elapsed = time.Since(actionStartTime).Milliseconds()
|
|
||||||
actionResult.Plannings = planningResults
|
|
||||||
stepResult.Actions = append(stepResult.Actions, actionResult)
|
|
||||||
if err != nil {
|
|
||||||
actionResult.Error = err.Error()
|
|
||||||
if !code.IsErrorPredefined(err) {
|
|
||||||
err = errors.Wrap(code.MobileUIDriverError, err.Error())
|
|
||||||
}
|
|
||||||
return stepResult, err
|
|
||||||
}
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle AI operations (ai_action, ai_query, ai_assert) with unified result storage
|
// handle AI operations (ai_action, ai_query, ai_assert) with unified result storage
|
||||||
if action.Method == option.ACTION_AIAction || action.Method == option.ACTION_Query || action.Method == option.ACTION_AIAssert {
|
if action.Method == option.ACTION_AIAction || action.Method == option.ACTION_Query || action.Method == option.ACTION_AIAssert {
|
||||||
var aiResult *uixt.AIExecutionResult
|
var aiResult *uixt.AIExecutionResult
|
||||||
|
|||||||
Reference in New Issue
Block a user