mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-25 18:30:04 +08:00
fix: errors
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user