fix: errors

This commit is contained in:
lilong.129
2025-02-09 10:51:03 +08:00
parent 5e45eb7836
commit 3038fb7430
47 changed files with 710 additions and 910 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/httprunner/httprunner/v5/pkg/uixt/option"
)
var uiClients = make(map[string]*uixt.DriverExt) // UI automation clients for iOS and Android, key is udid/serial
var uiClients = make(map[string]uixt.IDriverExt) // UI automation clients for iOS and Android, key is udid/serial
func handleDeviceContext() gin.HandlerFunc {
return func(c *gin.Context) {
@@ -54,9 +54,7 @@ func handleDeviceContext() gin.HandlerFunc {
}
device.Setup()
driver, err := device.NewDriver(
option.WithDriverImageService(true),
option.WithDriverResultFolder(true))
driver, err := device.NewDriver()
if err != nil {
log.Error().Err(err).Str("platform", platform).Str("serial", serial).
Msg("failed to init driver")

View File

@@ -1,6 +1,8 @@
package server
import "github.com/httprunner/httprunner/v5/pkg/uixt/option"
import (
"github.com/httprunner/httprunner/v5/pkg/uixt/option"
)
type HttpResponse struct {
Code int `json:"code"`
@@ -31,7 +33,7 @@ type InputRequest struct {
}
type ScreenRequest struct {
Options *option.ActionOptions `json:"options,omitempty"`
Options *option.ScreenOptions `json:"options,omitempty"`
}
type KeycodeRequest struct {