Documentation ¶
Index ¶
- Variables
- func GetConnectedDevicesCommon() []models.ConnectedDevice
- func GetDeviceHealth(device *models.Device) (bool, error)
- func InstallApp(device *models.Device, app string) error
- func InstallAppWithDevice(device *models.Device, filePath string) error
- func Listener()
- func Setup()
- func UninstallApp(device *models.Device, app string) error
- func UpdateInstalledApps(device *models.Device)
- type AppiumCreateSessionResponse
- type AppiumGetSessionsResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var DeviceMap = make(map[string]*models.Device)
Functions ¶
func GetConnectedDevicesCommon ¶
func GetConnectedDevicesCommon() []models.ConnectedDevice
Gets all connected iOS and Android devices to the host
func GetDeviceHealth ¶
Check if a device is healthy by checking Appium and WebDriverAgent(for iOS) services
func Setup ¶
func Setup()
Create Mongo collections for all devices for logging Create a map of *device.LocalDevice for easier access across the code
func UpdateInstalledApps ¶
Types ¶
type AppiumCreateSessionResponse ¶
type AppiumCreateSessionResponse struct { Value struct { SessionID string `json:"sessionId"` } `json:"value"` }
type AppiumGetSessionsResponse ¶
type AppiumGetSessionsResponse struct { Value []struct { ID string `json:"id"` } `json:"value"` }
Click to show internal directories.
Click to hide internal directories.