Documentation
¶
Index ¶
- type ActionHandler
- type ActionType
- type AppType
- type Connect
- type ContentType
- type Custom
- type DragAndDrop
- type GetAttr
- type GetSceenGraph
- func (a *GetSceenGraph) Content() string
- func (a *GetSceenGraph) FindElementID(xpath string) (string, error)
- func (a *GetSceenGraph) GetActionType() ActionType
- func (a *GetSceenGraph) ProcessResponse(response *Response) error
- func (a *GetSceenGraph) Serialize() ([]byte, error)
- func (a *GetSceenGraph) XML() (*xmlquery.Node, error)
- func (a *GetSceenGraph) XMLBytes(pretty bool) ([]byte, error)
- type GetScreenshot
- func (a *GetScreenshot) GetActionType() ActionType
- func (a *GetScreenshot) Height() int
- func (a *GetScreenshot) ProcessResponse(response *Response) error
- func (a *GetScreenshot) SceengraphXML() []byte
- func (a *GetScreenshot) ScreenshotData() []byte
- func (a *GetScreenshot) Serialize() ([]byte, error)
- func (a *GetScreenshot) Width() int
- type GetValue
- type Interface
- type IsDisplayed
- type LogData
- type LogLevel
- type LogType
- type LongTouchElement
- type MoveElement
- type MoveOffset
- type Node
- type PerformanceData
- type Request
- type RequestData
- type Response
- type ResponseData
- type Screenshot
- type Scroll
- type SetAttr
- type SetValue
- type Test
- type TestDetails
- type TestStart
- type Tests
- type TestsGet
- type Touch
- type TouchDownPosition
- type TouchElement
- type TouchMovePosition
- type TouchUpPosition
- type UnityReset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHandler ¶
type ActionHandler interface {
OnActionResponse(interface{}, *Response)
}
type ActionType ¶
type ActionType int32
const ( ActionType_Custom ActionType = 0 ActionType_GetSceneGraph ActionType = 1 ActionType_ElementIsDisplayed ActionType = 2 ActionType_ElementSetValue ActionType = 3 ActionType_ElementGetValue ActionType = 4 ActionType_Move ActionType = 5 ActionType_TouchDown ActionType = 6 ActionType_TouchMove ActionType = 7 ActionType_TouchUp ActionType = 8 ActionType_DragAndDrop ActionType = 9 ActionType_LongTouch ActionType = 10 ActionType_ElementTouch ActionType = 11 ActionType_GetScreenshot ActionType = 12 ActionType_GetTests ActionType = 13 ActionType_ExecuteTest ActionType = 14 ActionType_ExecutionResult ActionType = 15 ActionType_Log ActionType = 16 ActionType_UnityReset ActionType = 17 ActionType_Performance ActionType = 18 ActionType_NativeScript ActionType = 19 ActionType_ExecuteMethodStart ActionType = 20 ActionType_ExecuteMethodFinished ActionType = 21 )
type ContentType ¶
type ContentType int32
const ( ContentType_Flatbuffer ContentType = 0 ContentType_Json ContentType = 1 ContentType_Xml ContentType = 2 )
type Custom ¶
func (*Custom) GetActionType ¶
func (a *Custom) GetActionType() ActionType
func (*Custom) ProcessResponse ¶
type DragAndDrop ¶
func (*DragAndDrop) GetActionType ¶
func (a *DragAndDrop) GetActionType() ActionType
func (*DragAndDrop) ProcessResponse ¶
func (a *DragAndDrop) ProcessResponse(response *Response) error
func (*DragAndDrop) Serialize ¶
func (a *DragAndDrop) Serialize() ([]byte, error)
type GetSceenGraph ¶
type GetSceenGraph struct {
// contains filtered or unexported fields
}
func (*GetSceenGraph) Content ¶
func (a *GetSceenGraph) Content() string
func (*GetSceenGraph) FindElementID ¶ added in v1.1.0
func (a *GetSceenGraph) FindElementID(xpath string) (string, error)
FindElementID returns the ID attribute of the first element matching the XPath expression, preferring visible elements.
func (*GetSceenGraph) GetActionType ¶
func (a *GetSceenGraph) GetActionType() ActionType
func (*GetSceenGraph) ProcessResponse ¶
func (a *GetSceenGraph) ProcessResponse(response *Response) error
func (*GetSceenGraph) Serialize ¶
func (a *GetSceenGraph) Serialize() ([]byte, error)
type GetScreenshot ¶
type GetScreenshot struct {
Success bool
// contains filtered or unexported fields
}
func (*GetScreenshot) GetActionType ¶
func (a *GetScreenshot) GetActionType() ActionType
func (*GetScreenshot) Height ¶
func (a *GetScreenshot) Height() int
func (*GetScreenshot) ProcessResponse ¶
func (a *GetScreenshot) ProcessResponse(response *Response) error
func (*GetScreenshot) SceengraphXML ¶
func (a *GetScreenshot) SceengraphXML() []byte
func (*GetScreenshot) ScreenshotData ¶
func (a *GetScreenshot) ScreenshotData() []byte
func (*GetScreenshot) Serialize ¶
func (a *GetScreenshot) Serialize() ([]byte, error)
func (*GetScreenshot) Width ¶
func (a *GetScreenshot) Width() int
type GetValue ¶
func (*GetValue) GetActionType ¶
func (a *GetValue) GetActionType() ActionType
func (*GetValue) ProcessResponse ¶
type Interface ¶
type Interface interface {
GetActionType() ActionType
Serialize() ([]byte, error)
ProcessResponse(response *Response) error
}
type IsDisplayed ¶
func (*IsDisplayed) GetActionType ¶
func (a *IsDisplayed) GetActionType() ActionType
func (*IsDisplayed) ProcessResponse ¶
func (a *IsDisplayed) ProcessResponse(response *Response) error
func (*IsDisplayed) Serialize ¶
func (a *IsDisplayed) Serialize() ([]byte, error)
type LongTouchElement ¶
func (*LongTouchElement) GetActionType ¶
func (a *LongTouchElement) GetActionType() ActionType
func (*LongTouchElement) ProcessResponse ¶
func (a *LongTouchElement) ProcessResponse(response *Response) error
func (*LongTouchElement) Serialize ¶
func (a *LongTouchElement) Serialize() ([]byte, error)
type MoveElement ¶
type MoveOffset ¶
type Node ¶
type Node struct {
XMLName xml.Name `xml:""`
Class string `xml:"Class,attr"`
Id int32 `xml:"ID,attr"`
Name string `xml:"Name,attr"`
CSS string `xml:"CSS,attr"`
X int32 `xml:"X,attr"`
Y int32 `xml:"Y,attr"`
RectangleX int32 `xml:"RectangleX,attr"`
RectangleY int32 `xml:"RectangleY,attr"`
IsVisible byte `xml:"isVisible,attr"`
LabelText string `xml:"LabelText,attr"`
Children []Node `xml:""`
}
type PerformanceData ¶
type Request ¶
type Request struct {
ActionID string `json:"actionID"`
ActionType ActionType `json:"actionType"`
Payload RequestData `json:"payload"`
}
type RequestData ¶ added in v1.0.0
type RequestData struct {
Id *string `json:"id,omitempty"`
Data *[]byte `json:"data,omitempty"`
SetAttr *SetAttr `json:"setAttr,omitempty"`
GetAttr *GetAttr `json:"getAttr,omitempty"`
MoveOffset *MoveOffset `json:"moveOffset,omitempty"`
Touch *Touch `json:"touch,omitempty"`
MoveElement *MoveElement `json:"moveElement,omitempty"`
Test *Test `json:"test,omitempty"`
}
type Response ¶
type Response struct {
ActionID string `json:"actionID"`
ActionType ActionType `json:"actionType"`
Success bool `json:"success"`
Payload ResponseData `json:"payload"`
}
type ResponseData ¶ added in v1.0.0
type ResponseData struct {
Visible *bool `json:"visible,omitempty"`
Data *[]byte `json:"data,omitempty"`
Value *string `json:"value,omitempty"`
Screenshot *Screenshot `json:"screenshot,omitempty"`
Connect *Connect `json:"connect,omitempty"`
Tests *Tests `json:"tests,omitempty"`
LogData *LogData `json:"logData,omitempty"`
TestDetails *TestDetails `json:"testDetails,omitempty"`
PerformanceData *PerformanceData `json:"performanceData,omitempty"`
}
type Screenshot ¶
type Screenshot struct {
Sceengraph []byte `json:"sceengraph"`
Screenshot []byte `json:"screenshot"`
ContentType ContentType `json:"contentType"`
}
type Scroll ¶
func (*Scroll) GetActionType ¶
func (a *Scroll) GetActionType() ActionType
func (*Scroll) ProcessResponse ¶
type SetValue ¶
func (*SetValue) GetActionType ¶
func (a *SetValue) GetActionType() ActionType
func (*SetValue) ProcessResponse ¶
type TestDetails ¶
type TestStart ¶
type TestStart struct {
Assembly string
Class string
Method string
Env map[string]string
Success bool
}
func (*TestStart) GetActionType ¶
func (a *TestStart) GetActionType() ActionType
func (*TestStart) ProcessResponse ¶
type TestsGet ¶
func (*TestsGet) GetActionType ¶
func (a *TestsGet) GetActionType() ActionType
func (*TestsGet) ProcessResponse ¶
type TouchDownPosition ¶
func (*TouchDownPosition) GetActionType ¶
func (a *TouchDownPosition) GetActionType() ActionType
func (*TouchDownPosition) ProcessResponse ¶
func (a *TouchDownPosition) ProcessResponse(response *Response) error
func (*TouchDownPosition) Serialize ¶
func (a *TouchDownPosition) Serialize() ([]byte, error)
type TouchElement ¶
func (*TouchElement) GetActionType ¶
func (a *TouchElement) GetActionType() ActionType
func (*TouchElement) ProcessResponse ¶
func (a *TouchElement) ProcessResponse(response *Response) error
func (*TouchElement) Serialize ¶
func (a *TouchElement) Serialize() ([]byte, error)
type TouchMovePosition ¶
func (*TouchMovePosition) GetActionType ¶
func (a *TouchMovePosition) GetActionType() ActionType
func (*TouchMovePosition) ProcessResponse ¶
func (a *TouchMovePosition) ProcessResponse(response *Response) error
func (*TouchMovePosition) Serialize ¶
func (a *TouchMovePosition) Serialize() ([]byte, error)
type TouchUpPosition ¶
func (*TouchUpPosition) GetActionType ¶
func (a *TouchUpPosition) GetActionType() ActionType
func (*TouchUpPosition) ProcessResponse ¶
func (a *TouchUpPosition) ProcessResponse(response *Response) error
func (*TouchUpPosition) Serialize ¶
func (a *TouchUpPosition) Serialize() ([]byte, error)
type UnityReset ¶
func (*UnityReset) GetActionType ¶
func (a *UnityReset) GetActionType() ActionType
func (*UnityReset) ProcessResponse ¶
func (a *UnityReset) ProcessResponse(response *Response) error
func (*UnityReset) Serialize ¶
func (a *UnityReset) Serialize() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.