models

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionData added in v0.9.0

type ActionData struct {
	X          float64 `json:"x,omitempty"`
	Y          float64 `json:"y,omitempty"`
	EndX       float64 `json:"endX,omitempty"`
	EndY       float64 `json:"endY,omitempty"`
	TextToType string  `json:"text,omitempty"`
}

type ActiveElementData added in v0.9.0

type ActiveElementData struct {
	Value struct {
		Element string `json:"ELEMENT"`
	} `json:"value"`
}

type AndroidKeycodePayload added in v0.9.0

type AndroidKeycodePayload struct {
	Keycode int `json:"keycode"`
}

type AppiumLog added in v0.9.0

type AppiumLog struct {
	SystemTS  int64  `json:"ts" bson:"ts"`
	Message   string `json:"msg" bson:"msg"`
	AppiumTS  string `json:"appium_ts" bson:"appium_ts"`
	Type      string `json:"log_type" bson:"log_type"`
	SessionID string `json:"session_id" bson:"session_id"`
}

type AppiumLogger added in v0.9.0

type AppiumLogger interface {
	Log(device *Device, logLine string)
}

type AppiumServerCapabilities added in v0.9.0

type AppiumServerCapabilities struct {
	UDID                  string `json:"appium:udid"`
	WdaMjpegPort          string `json:"appium:mjpegServerPort,omitempty"`
	ClearSystemFiles      string `json:"appium:clearSystemFiles,omitempty"`
	WdaURL                string `json:"appium:webDriverAgentUrl,omitempty"`
	PreventWdaAttachments string `json:"appium:preventWDAAttachments,omitempty"`
	SimpleIsVisibleCheck  string `json:"appium:simpleIsVisibleCheck,omitempty"`
	WdaLocalPort          string `json:"appium:wdaLocalPort,omitempty"`
	PlatformVersion       string `json:"appium:platformVersion,omitempty"`
	AutomationName        string `json:"appium:automationName"`
	PlatformName          string `json:"platformName"`
	DeviceName            string `json:"appium:deviceName"`
	WdaLaunchTimeout      string `json:"appium:wdaLaunchTimeout,omitempty"`
	WdaConnectionTimeout  string `json:"appium:wdaConnectionTimeout,omitempty"`
}

type AppiumTomlConfig added in v0.9.0

type AppiumTomlConfig struct {
	Server AppiumTomlServer `toml:"server"`
	Node   AppiumTomlNode   `toml:"node"`
	Relay  AppiumTomlRelay  `toml:"relay"`
}

type AppiumTomlNode added in v0.9.0

type AppiumTomlNode struct {
	DetectDrivers bool `toml:"detect-drivers"`
}

type AppiumTomlRelay added in v0.9.0

type AppiumTomlRelay struct {
	URL            string   `toml:"url"`
	StatusEndpoint string   `toml:"status-endpoint"`
	Configs        []string `toml:"configs"`
}

type AppiumTomlServer added in v0.9.0

type AppiumTomlServer struct {
	Port int `toml:"port"`
}

type AppiumTypeText added in v0.9.0

type AppiumTypeText struct {
	Text string `json:"text"`
}

type ByUDID added in v0.9.0

type ByUDID []Device

func (ByUDID) Len added in v0.9.0

func (a ByUDID) Len() int

func (ByUDID) Less added in v0.9.0

func (a ByUDID) Less(i, j int) bool

func (ByUDID) Swap added in v0.9.0

func (a ByUDID) Swap(i, j int)

type ConfigJsonData

type ConfigJsonData struct {
	EnvConfig ProviderDB `json:"env-config" bson:"env-config"`
}

type ConnectedDevice added in v0.9.0

type ConnectedDevice struct {
	OS   string
	UDID string
}

type CustomLogger added in v0.9.0

type CustomLogger interface {
	LogDebug(eventName string, message string)
	LogInfo(eventName string, message string)
	LogError(eventName string, message string)
	LogWarn(eventName string, message string)
	LogFatal(eventName string, message string)
	LogPanic(eventName string, message string)
}

type Device

type Device struct {
	Connected            bool               `json:"connected" bson:"connected"`
	UDID                 string             `json:"udid" bson:"udid"`
	OS                   string             `json:"os" bson:"os"`
	Name                 string             `json:"name" bson:"name"`
	OSVersion            string             `json:"os_version" bson:"os_version"`
	Model                string             `json:"model" bson:"model"`
	Host                 string             `json:"host" bson:"host"`
	Provider             string             `json:"provider" bson:"provider"`
	ScreenWidth          string             `json:"screen_width" bson:"screen_width"`
	ScreenHeight         string             `json:"screen_height" bson:"screen_height"`
	HardwareModel        string             `json:"hardware_model,omitempty" bson:"hardware_model,omitempty"`
	InstalledApps        []string           `json:"installed_apps" bson:"-"`
	IOSProductType       string             `json:"ios_product_type,omitempty" bson:"ios_product_type,omitempty"`
	LastUpdatedTimestamp int64              `json:"last_updated_timestamp" bson:"last_updated_timestamp"`
	ProviderState        string             `json:"provider_state" bson:"provider_state"`
	WdaReadyChan         chan bool          `json:"-" bson:"-"`
	Context              context.Context    `json:"-" bson:"-"`
	CtxCancel            context.CancelFunc `json:"-" bson:"-"`
	GoIOSDeviceEntry     ios.DeviceEntry    `json:"-" bson:"-"`
	IsResetting          bool               `json:"is_resetting" bson:"is_resetting"`
	Logger               CustomLogger       `json:"-" bson:"-"`
	InstallableApps      []string           `json:"installable_apps" bson:"-"`
	AppiumSessionID      string             `json:"appiumSessionID" bson:"-"`
	WDASessionID         string             `json:"wdaSessionID" bson:"-"`
	AppiumPort           string             `json:"appium_port" bson:"-"`
	StreamPort           string             `json:"stream_port" bson:"-"`
	WDAStreamPort        string             `json:"wda_stream_port" bson:"-"`
	WDAPort              string             `json:"wda_port" bson:"-"`
	AppiumLogger         AppiumLogger       `json"-" bson:"-"`
}

type DeviceAction added in v0.9.0

type DeviceAction struct {
	Type     string  `json:"type"`
	Duration int     `json:"duration"`
	X        float64 `json:"x,omitempty"`
	Y        float64 `json:"y,omitempty"`
	Button   int     `json:"button"`
	Origin   string  `json:"origin,omitempty"`
}

type DeviceActionParameters added in v0.9.0

type DeviceActionParameters struct {
	PointerType string `json:"pointerType"`
}

type DevicePointerAction added in v0.9.0

type DevicePointerAction struct {
	Type       string                 `json:"type"`
	ID         string                 `json:"id"`
	Parameters DeviceActionParameters `json:"parameters"`
	Actions    []DeviceAction         `json:"actions"`
}

type DevicePointerActions added in v0.9.0

type DevicePointerActions struct {
	Actions []DevicePointerAction `json:"actions"`
}

type IOSModelData added in v0.9.0

type IOSModelData struct {
	Width  string
	Height string
	Model  string
}

type ProviderDB added in v0.9.0

type ProviderDB struct {
	OS                   string `json:"os" bson:"os"`
	Nickname             string `json:"nickname" bson:"nickname"`
	HostAddress          string `json:"host_address" bson:"host_address"`
	Port                 int    `json:"port" bson:"port"`
	UseSeleniumGrid      bool   `json:"use_selenium_grid" bson:"use_selenium_grid"`
	SeleniumGrid         string `json:"selenium_grid" bson:"selenium_grid"`
	ProvideAndroid       bool   `json:"provide_android" bson:"provide_android"`
	ProvideIOS           bool   `json:"provide_ios" bson:"provide_ios"`
	WdaBundleID          string `json:"wda_bundle_id" bson:"wda_bundle_id"`
	SupervisionPassword  string `json:"supervision_password" bson:"supervision_password"`
	WdaRepoPath          string `json:"wda_repo_path" bson:"wda_repo_path"`
	ProviderFolder       string `json:"-" bson:"-"`
	LastUpdatedTimestamp int64  `json:"last_updated" bson:"last_updated"`
	ProvidedDevices      int    `json:"provided_devices_count" bson:"provided_devices_count"`
	WebDriverBinary      string `json:"-" bson:"-"`
	SeleniumJarFile      string `json:"-" bson:"-"`
	UseGadsIosStream     bool   `json:"use_gads_ios_stream" bson:"use_gads_ios_stream"`
}

type ProviderData added in v0.9.0

type ProviderData struct {
	ProviderData ProviderDB `json:"provider"`
	DeviceData   []*Device  `json:"device_data"`
}

Jump to

Keyboard shortcuts

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