base

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceMap

type DeviceMap struct {
	Device device.Device
	Model  models.Device
}

type TestRunner

type TestRunner struct {
	DeviceManager manager.Devices
	IP            net.IP
	DB            *gorm.DB
	Config        models.TestConfig
	Test          models.Test

	ProtocolWriter *protocol.ProtocolWriter
	TestRun        models.TestRun
	Err            error
}

func (*TestRunner) Init

func (t *TestRunner) Init(deviceManager manager.Devices, ip net.IP, db *gorm.DB)

func (*TestRunner) InitNewTestSession

func (tr *TestRunner) InitNewTestSession(appId uint, params string) error

func (*TestRunner) InstallApp

func (tr *TestRunner) InstallApp(params app.Parameter, devices []DeviceMap)

func (*TestRunner) LockDevices

func (tr *TestRunner) LockDevices(devs []models.Device) []DeviceMap

func (*TestRunner) LogError

func (tr *TestRunner) LogError(format string, params ...interface{})

func (*TestRunner) LogInfo

func (tr *TestRunner) LogInfo(format string, params ...interface{})

func (*TestRunner) NewSessionID

func (tr *TestRunner) NewSessionID() string

func (*TestRunner) StartApp

func (tr *TestRunner) StartApp(params app.Parameter, devices []DeviceMap, appStartedFunc func(d device.Device), connectedFunc func(d device.Device)) ([]DeviceMap, error)

func (*TestRunner) StartDevices

func (tr *TestRunner) StartDevices(devices []DeviceMap) error

func (*TestRunner) StopApp

func (tr *TestRunner) StopApp(params app.Parameter, devices []DeviceMap)

func (*TestRunner) TestSessionFinished

func (tr *TestRunner) TestSessionFinished()

func (*TestRunner) UnlockDevices

func (tr *TestRunner) UnlockDevices(devices []DeviceMap)

Jump to

Keyboard shortcuts

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