Documentation
¶
Index ¶
- Constants
- func New() endly.Service
- type Artifact
- type ArtifactRequest
- type ArtifactResponse
- type AttachRequest
- type AttachResponse
- type BuildRequest
- type BuildResponse
- type CaptureHandle
- type CaptureStartRequest
- type CaptureStartResponse
- type CaptureStopRequest
- type CaptureStopResponse
- type CleanupRequest
- type CleanupResponse
- type CloseRequest
- type CloseResponse
- type DestinationLease
- type DestinationRegisterRequest
- type DestinationRegisterResponse
- type DestinationReleaseRequest
- type DestinationReleaseResponse
- type DeviceLeaseRequest
- type DeviceLeaseResponse
- type DeviceListRequest
- type DeviceListResponse
- type DeviceReleaseRequest
- type DeviceReleaseResponse
- type DoctorRequest
- type DoctorResponse
- type IOSSigningProfile
- type IOSSimulator
- type InstallRequest
- type InstallResponse
- type LaunchRequest
- type LaunchResponse
- type OpenRequest
- type OpenResponse
- type PhysicalDevice
- type REPLRequest
- type REPLResponse
- type RunRequest
- type RunResponse
- type ServerHandle
- type ServerStartRequest
- type ServerStartResponse
- type ServerStopRequest
- type ServerStopResponse
- type SessionHandle
- type SimulatorStartRequest
- type SimulatorStartResponse
- type SimulatorStopRequest
- type SimulatorStopResponse
- type TerminateRequest
- type TerminateResponse
- type TestRequest
- type TestResponse
- type UninstallRequest
- type UninstallResponse
- type WDAOptions
- type XCTestFailure
- type XCTestSummary
Constants ¶
View Source
const ServiceID = "ios"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArtifactRequest ¶
type ArtifactRequest struct {
SessionID string
Destination *DestinationLease
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
TakeOwnership bool
}
func (*AttachRequest) Validate ¶
func (r *AttachRequest) Validate() error
type AttachResponse ¶
type AttachResponse struct {
Session SessionHandle
}
type BuildRequest ¶
type BuildRequest struct {
ProjectPath string
WorkspacePath string
Scheme string
Configuration string
Destination DestinationLease
DerivedDataPath string
Mode string
SDK string
ArchivePath string
ExportPath string
ExportOptionsPlist string
Signing *IOSSigningProfile
BuildSettings map[string]string
TimeoutMs int
}
func (*BuildRequest) Init ¶
func (r *BuildRequest) Init() error
func (*BuildRequest) Validate ¶
func (r *BuildRequest) Validate() error
type BuildResponse ¶
type CaptureHandle ¶
type CaptureHandle struct {
ID string
Destination DestinationLease
PID int
LogPath string
}
type CaptureStartRequest ¶
type CaptureStartRequest struct {
Destination DestinationLease
Predicate string
LogPath string
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
Destination *DestinationLease
}
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 DestinationLease ¶
type DestinationLease struct {
ID string
Fence uint64
UDID string
Name string
Runtime string
Kind string // simulator or device; empty is legacy simulator
OwnedClone bool
PreserveOnRelease bool
ProcessLease *mobile.LeaseHandle
}
func (DestinationLease) IsDevice ¶
func (l DestinationLease) IsDevice() bool
func (DestinationLease) IsExternal ¶
func (l DestinationLease) IsExternal() bool
type DestinationRegisterRequest ¶
func (*DestinationRegisterRequest) Validate ¶
func (r *DestinationRegisterRequest) Validate() error
type DestinationRegisterResponse ¶
type DestinationRegisterResponse struct {
Lease DestinationLease
}
type DestinationReleaseRequest ¶
type DestinationReleaseRequest struct {
Lease DestinationLease
}
func (*DestinationReleaseRequest) Validate ¶
func (r *DestinationReleaseRequest) Validate() error
type DeviceLeaseRequest ¶
func (*DeviceLeaseRequest) Init ¶
func (r *DeviceLeaseRequest) Init() error
func (*DeviceLeaseRequest) Validate ¶
func (r *DeviceLeaseRequest) Validate() error
type DeviceLeaseResponse ¶
type DeviceLeaseResponse struct {
Lease DestinationLease
Device PhysicalDevice
}
type DeviceListRequest ¶
type DeviceListRequest struct {
TimeoutMs int
}
func (*DeviceListRequest) Init ¶
func (r *DeviceListRequest) Init() error
type DeviceListResponse ¶
type DeviceListResponse struct {
Devices []PhysicalDevice
}
type DeviceReleaseRequest ¶
type DeviceReleaseRequest struct {
Lease DestinationLease
}
func (*DeviceReleaseRequest) Validate ¶
func (r *DeviceReleaseRequest) Validate() error
type DeviceReleaseResponse ¶
type DoctorRequest ¶
type DoctorRequest struct {
Required []string
}
func (*DoctorRequest) Init ¶
func (r *DoctorRequest) Init() error
type DoctorResponse ¶
type DoctorResponse struct {
Ready bool
Checks []mobile.Check
Runtimes []string
Simulators []IOSSimulator
Devices []PhysicalDevice
}
func (*DoctorResponse) IsOutput ¶
func (r *DoctorResponse) IsOutput() bool
func (*DoctorResponse) Messages ¶
func (r *DoctorResponse) Messages() []*msg.Message
type IOSSigningProfile ¶
type IOSSimulator ¶
type InstallRequest ¶
type InstallRequest struct {
Destination DestinationLease
App Artifact
BundleID string
State string
}
func (*InstallRequest) Init ¶
func (r *InstallRequest) Init() error
func (*InstallRequest) Validate ¶
func (r *InstallRequest) Validate() error
type InstallResponse ¶
type LaunchRequest ¶
type LaunchRequest struct {
Destination DestinationLease
BundleID string
Arguments []string
Environment map[string]string
}
func (*LaunchRequest) Validate ¶
func (r *LaunchRequest) Validate() error
type LaunchResponse ¶
type OpenRequest ¶
type OpenRequest struct {
SessionID string
Destination DestinationLease
Server ServerHandle
BundleID string
App *Artifact
AppReference string
Capabilities map[string]interface{}
DescriptorPath string
KeepSession bool
WDA *WDAOptions
}
func (*OpenRequest) Init ¶
func (r *OpenRequest) Init() error
func (*OpenRequest) Validate ¶
func (r *OpenRequest) Validate() error
type OpenResponse ¶
type OpenResponse struct {
Session SessionHandle
}
type PhysicalDevice ¶
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 {
Destination DestinationLease
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
Destination DestinationLease
Server ServerHandle
}
type SimulatorStartRequest ¶
type SimulatorStartRequest struct {
UDID string
BaseName string
CloneName string
DeviceType string
Runtime string
Erase bool
KeepBooted bool
BootTimeoutMs int
}
func (*SimulatorStartRequest) Init ¶
func (r *SimulatorStartRequest) Init() error
func (*SimulatorStartRequest) Validate ¶
func (r *SimulatorStartRequest) Validate() error
type SimulatorStartResponse ¶
type SimulatorStartResponse struct {
Lease DestinationLease
}
type SimulatorStopRequest ¶
type SimulatorStopRequest struct {
Lease DestinationLease
}
func (*SimulatorStopRequest) Validate ¶
func (r *SimulatorStopRequest) Validate() error
type SimulatorStopResponse ¶
type TerminateRequest ¶
type TerminateRequest struct {
Destination DestinationLease
BundleID string
PID int
}
func (*TerminateRequest) Validate ¶
func (r *TerminateRequest) Validate() error
type TerminateResponse ¶
type TerminateResponse struct{ Terminated bool }
type TestRequest ¶
type TestRequest struct {
Destination DestinationLease
ProjectPath string
WorkspacePath string
Scheme string
XCTestRunPath string
Mode string
OnlyTesting []string
SkipTesting []string
ResultBundlePath string
DerivedDataPath string
CollectDiagnostics string
TimeoutMs int
}
func (*TestRequest) Init ¶
func (r *TestRequest) Init() error
func (*TestRequest) Validate ¶
func (r *TestRequest) Validate() error
type TestResponse ¶
type TestResponse struct {
Summary XCTestSummary
Output string
DurationMs int
Validations []*assertly.Validation
}
func (*TestResponse) Assertion ¶
func (r *TestResponse) Assertion() []*assertly.Validation
type UninstallRequest ¶
type UninstallRequest struct {
Destination DestinationLease
BundleID string
}
func (*UninstallRequest) Validate ¶
func (r *UninstallRequest) Validate() error
type UninstallResponse ¶
type WDAOptions ¶
type WDAOptions struct {
Mode string // managed, prebuilt, preinstalled, external
DerivedDataPath string
PrebuiltWDAPath string
WebDriverAgentURL string
UpdatedBundleID string
UpdatedBundleIDSuffix *string
XcodeOrgID string
XcodeSigningID string
XcodeConfigFile string
KeychainPath string
KeychainPasswordFile string
LocalPort int
MJPEGServerPort int
UseNewWDA *bool
PrebuildWDA bool
LaunchTimeoutMs int
ConnectionTimeoutMs int
StartupRetries int
StartupRetryMs int
}
WDAOptions owns the WebDriverAgent lifecycle capabilities so callers cannot smuggle conflicting raw capabilities into OpenRequest.Capabilities.
func (*WDAOptions) Init ¶
func (o *WDAOptions) Init()
func (*WDAOptions) Validate ¶
func (o *WDAOptions) Validate() error
type XCTestFailure ¶
type XCTestSummary ¶
type XCTestSummary struct {
Title string `json:"title"`
Result string `json:"result"`
TotalTestCount int `json:"totalTestCount"`
PassedTests int `json:"passedTests"`
FailedTests int `json:"failedTests"`
SkippedTests int `json:"skippedTests"`
ExpectedFailures int `json:"expectedFailures"`
TestFailures []XCTestFailure `json:"testFailures"`
}
Click to show internal directories.
Click to hide internal directories.