iosdevice

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 Detect

type Detect struct {
	Event  string    `json:"Event"`
	Device IOSDevice `json:"Device"`
}

type Device

type Device struct {
	generic.Device
	// contains filtered or unexported fields
}

func (*Device) ConnectionTimeout

func (d *Device) ConnectionTimeout() time.Duration

func (*Device) DeviceID

func (d *Device) DeviceID() string

func (*Device) DeviceIP

func (d *Device) DeviceIP() net.IP

func (*Device) DeviceModel

func (d *Device) DeviceModel() string

func (*Device) DeviceName

func (d *Device) DeviceName() string

func (*Device) DeviceOSName

func (d *Device) DeviceOSName() string

func (*Device) DeviceOSVersion

func (d *Device) DeviceOSVersion() string

func (*Device) DeviceState

func (d *Device) DeviceState() device.State

func (*Device) Execute

func (d *Device) Execute(string)

func (*Device) GetScreenshot

func (d *Device) GetScreenshot() ([]byte, int, int, error)

func (*Device) HasFeature

func (d *Device) HasFeature(string) bool

func (*Device) InstallApp

func (d *Device) InstallApp(params *app.Parameter) error

func (*Device) IsAppConnected

func (d *Device) IsAppConnected() bool

func (*Device) IsAppInstalled

func (d *Device) IsAppInstalled(params *app.Parameter) (bool, error)

func (*Device) RunNativeScript

func (d *Device) RunNativeScript(script []byte)

func (*Device) SetDeviceState

func (d *Device) SetDeviceState(state string)

func (*Device) StartApp

func (d *Device) StartApp(params *app.Parameter, sessionId string, hostIP net.IP) error

func (*Device) StartRecording

func (d *Device) StartRecording(path string) error

func (*Device) StartXCUITestRunner

func (d *Device) StartXCUITestRunner() error

func (*Device) StopApp

func (d *Device) StopApp(params *app.Parameter) error

func (*Device) StopRecording

func (d *Device) StopRecording() error

func (*Device) StopXCUITestRunner

func (d *Device) StopXCUITestRunner() error

func (*Device) UninstallApp

func (d *Device) UninstallApp(params *app.Parameter) error

func (*Device) UpdateDeviceInfos

func (d *Device) UpdateDeviceInfos() error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ds storage.Device) *Handler

func (*Handler) GetDevices

func (m *Handler) GetDevices() ([]device.Device, error)

func (*Handler) HasDevice

func (m *Handler) HasDevice(dev device.Device) bool

func (*Handler) Init

func (m *Handler) Init() error

func (*Handler) Name

func (m *Handler) Name() string

func (*Handler) RefreshDevices

func (m *Handler) RefreshDevices() error

func (*Handler) RegisterDevice

func (m *Handler) RegisterDevice(data device.RegisterData) (device.Device, error)

func (*Handler) Start

func (m *Handler) Start() error

func (*Handler) StartDevice

func (m *Handler) StartDevice(deviceID string) error

func (*Handler) Stop

func (m *Handler) Stop() error

func (*Handler) StopDevice

func (m *Handler) StopDevice(deviceID string) error

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 New

func New(client *webdriver.Client, dev device.Device) *LuaScriptHandler

func (*LuaScriptHandler) Execute

func (l *LuaScriptHandler) Execute(script string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL