Documentation
¶
Index ¶
- Constants
- func New() endly.Service
- type AndroidDevice
- type AndroidSigningProfile
- type ArtifactRequest
- type ArtifactResponse
- type AttachRequest
- type AttachResponse
- type BuildArtifact
- type BuildRequest
- type BuildResponse
- type CaptureHandle
- type CaptureStartRequest
- type CaptureStartResponse
- type CaptureStopRequest
- type CaptureStopResponse
- type CleanupRequest
- type CleanupResponse
- type CloseRequest
- type CloseResponse
- type DeviceLease
- type DeviceRegisterRequest
- type DeviceRegisterResponse
- type DeviceReleaseRequest
- type DeviceReleaseResponse
- type DeviceStartRequest
- type DeviceStartResponse
- type DeviceStopRequest
- type DeviceStopResponse
- type DoctorRequest
- type DoctorResponse
- type InstallRequest
- type InstallResponse
- type InstrumentationCase
- type LaunchRequest
- type LaunchResponse
- type OpenRequest
- type OpenResponse
- type REPLRequest
- type REPLResponse
- type RunRequest
- type RunResponse
- type ServerHandle
- type ServerStartRequest
- type ServerStartResponse
- type ServerStopRequest
- type ServerStopResponse
- type SessionHandle
- type TerminateRequest
- type TerminateResponse
- type TestRequest
- type TestResponse
- type UninstallRequest
- type UninstallResponse
Constants ¶
View Source
const ServiceID = "android"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AndroidDevice ¶
type AndroidSigningProfile ¶
type ArtifactRequest ¶
type ArtifactRequest struct {
SessionID string
Lease *DeviceLease
Directory string
Screenshot bool
PageSource bool
MaxSourceBytes int
}
func (*ArtifactRequest) Init ¶
func (r *ArtifactRequest) Init() error
func (*ArtifactRequest) Validate ¶
func (r *ArtifactRequest) Validate() error
type ArtifactResponse ¶
type AttachRequest ¶
type AttachRequest struct {
SessionID string
DescriptorPath string
BackendSessionID string
ServerURL string
TargetID string
TestIDStrategy string
TakeOwnership bool
}
AttachRequest reconnects this Endly process to an Appium session created by another process. DescriptorPath is mutually exclusive with the explicit backend fields.
func (*AttachRequest) Validate ¶
func (r *AttachRequest) Validate() error
type AttachResponse ¶
type AttachResponse struct {
Session SessionHandle
}
type BuildRequest ¶
type BuildRequest struct {
ProjectDir string
Module string
Variant string
Tasks []string
GradleArgs []string
TimeoutMs int
}
func (*BuildRequest) Init ¶
func (r *BuildRequest) Init() error
func (*BuildRequest) Validate ¶
func (r *BuildRequest) Validate() error
type BuildResponse ¶
type BuildResponse struct {
Artifacts []BuildArtifact
Stdout string
Stderr string
DurationMs int
}
type CaptureHandle ¶
type CaptureHandle struct {
ID string
Lease DeviceLease
PID int
LogPath string
}
type CaptureStartRequest ¶
type CaptureStartRequest struct {
Lease DeviceLease
Package string
LogPath string
Clear bool
Video bool
VideoDirectory string
SegmentMs int
}
func (*CaptureStartRequest) Init ¶
func (r *CaptureStartRequest) Init() error
func (*CaptureStartRequest) Validate ¶
func (r *CaptureStartRequest) Validate() error
type CaptureStartResponse ¶
type CaptureStartResponse struct{ Capture CaptureHandle }
type CaptureStopRequest ¶
type CaptureStopRequest struct{ Capture CaptureHandle }
func (*CaptureStopRequest) Validate ¶
func (r *CaptureStopRequest) Validate() error
type CaptureStopResponse ¶
type CleanupRequest ¶
type CleanupRequest struct {
Session *SessionHandle
Server *ServerHandle
Lease *DeviceLease
}
type CleanupResponse ¶
type CleanupResponse struct {
Errors []mobile.CleanupError
}
type CloseRequest ¶
type CloseRequest struct {
SessionID string
}
func (*CloseRequest) Validate ¶
func (r *CloseRequest) Validate() error
type CloseResponse ¶
type DeviceLease ¶
type DeviceRegisterRequest ¶
func (*DeviceRegisterRequest) Validate ¶
func (r *DeviceRegisterRequest) Validate() error
type DeviceRegisterResponse ¶
type DeviceRegisterResponse struct {
Lease DeviceLease
}
type DeviceReleaseRequest ¶
type DeviceReleaseRequest struct {
Lease DeviceLease
}
func (*DeviceReleaseRequest) Validate ¶
func (r *DeviceReleaseRequest) Validate() error
type DeviceReleaseResponse ¶
type DeviceStartRequest ¶
type DeviceStartRequest struct {
AndroidSDKRoot string
AVD string
Serial string
Port int
WipeData bool
NoWindow bool
NoSnapshot bool
Animations *bool
BootTimeoutMs int
PollIntervalMs int
LogPath string
EmulatorArgs []string
}
func (*DeviceStartRequest) Init ¶
func (r *DeviceStartRequest) Init() error
func (*DeviceStartRequest) Validate ¶
func (r *DeviceStartRequest) Validate() error
type DeviceStartResponse ¶
type DeviceStartResponse struct {
Lease DeviceLease
}
type DeviceStopRequest ¶
type DeviceStopRequest struct {
Lease DeviceLease
}
func (*DeviceStopRequest) Validate ¶
func (r *DeviceStopRequest) Validate() error
type DeviceStopResponse ¶
type DoctorRequest ¶
func (*DoctorRequest) Init ¶
func (r *DoctorRequest) Init() error
type DoctorResponse ¶
type DoctorResponse struct {
Ready bool
AndroidSDKRoot string
Checks []mobile.Check
Devices []AndroidDevice
AVDs []string
}
func (*DoctorResponse) IsOutput ¶
func (r *DoctorResponse) IsOutput() bool
func (*DoctorResponse) Messages ¶
func (r *DoctorResponse) Messages() []*msg.Message
type InstallRequest ¶
type InstallRequest struct {
Lease DeviceLease
APKPath string
APKPaths []string
APKSPath string
AABPath string
BundletoolPath string
JavaPath string
Signing *AndroidSigningProfile
Package string
State string
GrantAll bool
AllowTest bool
AllowDowngrade bool
}
func (*InstallRequest) Init ¶
func (r *InstallRequest) Init() error
func (*InstallRequest) Validate ¶
func (r *InstallRequest) Validate() error
type InstallResponse ¶
type InstrumentationCase ¶
type LaunchRequest ¶
type LaunchRequest struct {
Lease DeviceLease
Package string
Activity string
}
func (*LaunchRequest) Validate ¶
func (r *LaunchRequest) Validate() error
type LaunchResponse ¶
type OpenRequest ¶
type OpenRequest struct {
SessionID string
Lease DeviceLease
Server ServerHandle
Package string
Activity string
AppReference string
TestIDStrategy string
Capabilities map[string]interface{}
DescriptorPath string
KeepSession bool
}
func (*OpenRequest) Init ¶
func (r *OpenRequest) Init() error
func (*OpenRequest) Validate ¶
func (r *OpenRequest) Validate() error
type OpenResponse ¶
type OpenResponse struct {
Session SessionHandle
}
type REPLRequest ¶
type REPLRequest struct {
SessionID string
Attach *AttachRequest
Prompt string
ArtifactDirectory string
ActionTimeoutMs int
PollIntervalMs int
MaxSourceBytes int
MaxTreeNodes int
FailOnError bool
HistoryPath string
MaxHistory int
}
func (*REPLRequest) Init ¶
func (r *REPLRequest) Init() error
func (*REPLRequest) Validate ¶
func (r *REPLRequest) Validate() error
type REPLResponse ¶
type REPLResponse struct {
SessionID string
Result *mobile.REPLResult
}
type RunRequest ¶
type RunRequest struct {
SessionID string
Commands []interface{}
ActionTimeoutMs int
PollIntervalMs int
FailureArtifacts *mobile.FailureArtifactOptions
}
func (*RunRequest) Init ¶
func (r *RunRequest) Init() error
func (*RunRequest) Validate ¶
func (r *RunRequest) Validate() error
type RunResponse ¶
type RunResponse struct {
Data map[string]interface{}
Steps []mobile.ExecutionStep
Validations []*assertly.Validation
Failures []*mobile.FailureEvidence
}
func (*RunResponse) Assertion ¶
func (r *RunResponse) Assertion() []*assertly.Validation
type ServerHandle ¶
type ServerStartRequest ¶
type ServerStartRequest struct {
Lease DeviceLease
Mode string
ServerURL string
Executable string
AppiumHome string
Address string
Port int
BasePath string
LogPath string
StartupTimeoutMs int
}
func (*ServerStartRequest) Init ¶
func (r *ServerStartRequest) Init() error
func (*ServerStartRequest) Validate ¶
func (r *ServerStartRequest) Validate() error
type ServerStartResponse ¶
type ServerStartResponse struct{ Server ServerHandle }
type ServerStopRequest ¶
type ServerStopRequest struct{ Server ServerHandle }
func (*ServerStopRequest) Validate ¶
func (r *ServerStopRequest) Validate() error
type ServerStopResponse ¶
type SessionHandle ¶
type SessionHandle struct {
ID string
BackendSessionID string
Lease DeviceLease
Server ServerHandle
}
type TerminateRequest ¶
type TerminateRequest struct {
Lease DeviceLease
Package string
}
func (*TerminateRequest) Validate ¶
func (r *TerminateRequest) Validate() error
type TerminateResponse ¶
type TerminateResponse struct{ Terminated bool }
type TestRequest ¶
type TestRequest struct {
Lease DeviceLease
AppAPKPath string
TestAPKPath string
TestPackage string
Runner string
Class string
Arguments map[string]string
GrantAll bool
TimeoutMs int
}
func (*TestRequest) Init ¶
func (r *TestRequest) Init() error
func (*TestRequest) Validate ¶
func (r *TestRequest) Validate() error
type TestResponse ¶
type TestResponse struct {
Cases []InstrumentationCase
Passed int
Failed int
Skipped int
DurationMs int
Output string
Validations []*assertly.Validation
}
func (*TestResponse) Assertion ¶
func (r *TestResponse) Assertion() []*assertly.Validation
type UninstallRequest ¶
type UninstallRequest struct {
Lease DeviceLease
Package string
}
func (*UninstallRequest) Validate ¶
func (r *UninstallRequest) Validate() error
type UninstallResponse ¶
Click to show internal directories.
Click to hide internal directories.