Documentation ¶
Index ¶
- Constants
- Variables
- type Detect
- type Device
- func (d *Device) ConnectionTimeout() time.Duration
- func (d *Device) DeviceID() string
- func (d *Device) DeviceIP() net.IP
- func (d *Device) DeviceModel() string
- func (d *Device) DeviceName() string
- func (d *Device) DeviceOSName() string
- func (d *Device) DeviceOSVersion() string
- func (d *Device) DeviceState() device.State
- func (d *Device) Execute(string)
- func (d *Device) GetScreenshot() ([]byte, int, int, error)
- func (d *Device) HasFeature(string) bool
- func (d *Device) InstallApp(params *app.Parameter) error
- func (d *Device) IsAppConnected() bool
- func (d *Device) IsAppInstalled(params *app.Parameter) (bool, error)
- func (d *Device) RunNativeScript(script []byte)
- func (d *Device) SetDeviceState(state string)
- func (d *Device) StartApp(params *app.Parameter, sessionId string, hostIP net.IP) error
- func (d *Device) StartRecording(path string) error
- func (d *Device) StartXCUITestRunner() error
- func (d *Device) StopApp(params *app.Parameter) error
- func (d *Device) StopRecording() error
- func (d *Device) StopXCUITestRunner() error
- func (d *Device) UninstallApp(params *app.Parameter) error
- func (d *Device) UpdateDeviceInfos() error
- type Handler
- func (m *Handler) GetDevices() ([]device.Device, error)
- func (m *Handler) HasDevice(dev device.Device) bool
- func (m *Handler) Init() error
- func (m *Handler) Name() string
- func (m *Handler) RefreshDevices() error
- func (m *Handler) RegisterDevice(data device.RegisterData) (device.Device, error)
- func (m *Handler) Start() error
- func (m *Handler) StartDevice(deviceID string) error
- func (m *Handler) Stop() error
- func (m *Handler) StopDevice(deviceID string) error
- type IOSDevice
- type LuaScriptHandler
Constants ¶
View Source
const (
ConnectionTimeout = 120 * time.Second
)
View Source
const (
KEYCODE_HOME = "home"
)
View Source
const (
Manager = "ios_device"
)
Variables ¶
View Source
var (
DeviceListTimeoutSecs = 2
)
Functions ¶
This section is empty.
Types ¶
type Device ¶
func (*Device) ConnectionTimeout ¶
func (*Device) DeviceModel ¶
func (*Device) DeviceName ¶
func (*Device) DeviceOSName ¶
func (*Device) DeviceOSVersion ¶
func (*Device) DeviceState ¶
func (*Device) HasFeature ¶
func (*Device) IsAppConnected ¶
func (*Device) IsAppInstalled ¶
func (*Device) RunNativeScript ¶
func (*Device) SetDeviceState ¶
func (*Device) StartRecording ¶
func (*Device) StartXCUITestRunner ¶
func (*Device) StopRecording ¶
func (*Device) StopXCUITestRunner ¶
func (*Device) UpdateDeviceInfos ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) RefreshDevices ¶
func (*Handler) RegisterDevice ¶
func (*Handler) StartDevice ¶
func (*Handler) StopDevice ¶
type IOSDevice ¶
type IOSDevice struct { BuildVersion string `json:"BuildVersion"` ModelSDK string `json:"modelSDK"` DeviceIdentifier string `json:"DeviceIdentifier"` DeviceClass string `json:"DeviceClass"` ProductType string `json:"ProductType"` DeviceName string `json:"DeviceName"` ProductVersion string `json:"ProductVersion"` ModelArch string `json:"modelArch"` HardwareModel string `json:"HardwareModel"` ModelName string `json:"modelName"` }
type LuaScriptHandler ¶
type LuaScriptHandler struct {
// contains filtered or unexported fields
}
func (*LuaScriptHandler) Execute ¶
func (l *LuaScriptHandler) Execute(script string) error
Click to show internal directories.
Click to hide internal directories.