devices

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: 28 Imported by: 0

Documentation

Index

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

func GetDeviceHealth(device *models.Device) (bool, error)

Check if a device is healthy by checking Appium and WebDriverAgent(for iOS) services

func InstallApp

func InstallApp(device *models.Device, app string) error

func InstallAppWithDevice

func InstallAppWithDevice(device *models.Device, filePath string) error

func Listener

func Listener()

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 UninstallApp

func UninstallApp(device *models.Device, app string) error

func UpdateInstalledApps

func UpdateInstalledApps(device *models.Device)

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"`
}

Jump to

Keyboard shortcuts

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