_const

package
v0.0.0-...-054b70b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "tester"
	PthSep  = string(os.PathSeparator)

	LanguageDefault = "en"
	LanguageEN      = "en"
	LanguageZH      = "zh"

	UserTokenExpireTime = 365 * 24 * 60 * 60 * 1000

	RegisterExpireTime = 5  // min
	WaitForExecTime    = 60 // min
	VmTimeout          = 30 // min

	RetryTime    = 3
	AgentRunTime = 20 // sec

	WebCheckQueueInterval    = 10 // sec
	AgentCheckDeviceInterval = 10 // sec

	MaxVmOnHost = 3
	RpcPort     = 8972

	UploadDir          = "uploads"
	Sep_Of_Mac_Address = ":"

	Build_Command_Param_AppPath        = "${appPath}"
	Build_Command_Param_AppPackage     = "${appPackage}"
	Build_Command_Param_AppActivity    = "${appActivity}"
	Build_Command_Param_AppiumPort     = "${appiumPort}"
	Build_Command_Param_SeleniumDriver = "${driverPath}"

	PageSize = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserType

type BrowserType string
const (
	Chrome  BrowserType = "chrome"
	Firefox BrowserType = "firefox"
	Edge    BrowserType = "edge"
	IE      BrowserType = "ie"
)

type BuildProgress

type BuildProgress string
const (
	ProgressCreated    BuildProgress = "created"
	ProgressLaunchVm   BuildProgress = "launch_vm"
	ProgressPending    BuildProgress = "pending"
	ProgressInProgress BuildProgress = "in_progress"
	ProgressTimeout    BuildProgress = "timeout"
	ProgressCompleted  BuildProgress = "completed"
)

type BuildStatus

type BuildStatus string
const (
	StatusCreated BuildStatus = "created"
	StatusPass    BuildStatus = "pass"
	StatusFail    BuildStatus = "fail"
)

type BuildType

type BuildType string
const (
	AppiumTest   BuildType = "appium_test"
	SeleniumTest BuildType = "selenium_test"
	UnitTest     BuildType = "unit_test"
)

type DeviceStatus

type DeviceStatus string
const (
	DeviceOff     DeviceStatus = "off"
	DeviceOn      DeviceStatus = "on"
	DeviceActive  DeviceStatus = "active"
	DeviceBusy    DeviceStatus = "busy"
	DeviceUnknown DeviceStatus = "unknown"
)

type HostStatus

type HostStatus string
const (
	HostActive  HostStatus = "active"
	HostOffline HostStatus = "offline"
)

type OsPlatform

type OsPlatform string
const (
	OsWindows OsPlatform = "windows"
	OsLinux   OsPlatform = "linux"
	OsMac     OsPlatform = "mac"

	OsAndroid OsPlatform = "android"
	OsIos     OsPlatform = "ios"
)

type OsType

type OsType string
const (
	Win10 OsType = "win10"
	Win7  OsType = "win7"
	WinXP OsType = "winxp"

	Ubuntu OsType = "ubuntu"
	CentOS OsType = "centos"
	Debian OsType = "debian"

	Mac OsType = "mac"
)

type ResType

type ResType string
const (
	ResRoot      ResType = "root"
	ResCluster   ResType = "cluster"
	ResComputer  ResType = "computer"
	ResVm        ResType = "vm"
	ResContainer ResType = "container"
	ResImage     ResType = "image"
	ResFolder    ResType = "folder"
)

type ResultCode

type ResultCode int
const (
	ResultSuccess ResultCode = 1
	ResultFail    ResultCode = 0
)

func (ResultCode) Int

func (c ResultCode) Int() int

type ServiceStatus

type ServiceStatus string
const (
	ServiceOff    ServiceStatus = "off"
	ServiceOn     ServiceStatus = "on"
	ServiceActive ServiceStatus = "active"
	ServiceBusy   ServiceStatus = "busy"
)

type SysLang

type SysLang string
const (
	EN_US SysLang = "en_us"
	ZH_CN SysLang = "zh_cn"
	ZH_TW SysLang = "zh_tw"
	ZH_HK SysLang = "zh_hk"
	DE_DE SysLang = "de_de"
	JA_JP SysLang = "ja_jp"
	FR_FR SysLang = "fr_fr"
	RU_RU SysLang = "ru_ru"
)

type VmStatus

type VmStatus string
const (
	VmCreated       VmStatus = "created"
	VmLaunched      VmStatus = "launched"
	VmActive        VmStatus = "active"
	VmBusy          VmStatus = "busy"
	VmDestroy       VmStatus = "destroy"
	VmFailToCreate  VmStatus = "fail_to_create"
	VmFailToDestroy VmStatus = "fail_to_destroy"
)

type WorkPlatform

type WorkPlatform string
const (
	Host WorkPlatform = "host"
	Vm   WorkPlatform = "vm"
	Box  WorkPlatform = "box"

	Android WorkPlatform = "android"
	Ios     WorkPlatform = "ios"
)

Jump to

Keyboard shortcuts

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