Documentation ¶
Index ¶
- type KeywordAndArgsInput
- type KeywordArgumentsReturnValue
- type KeywordDocumentationReturnValue
- type KeywordInput
- type KeywordNamesReturnValue
- type RobotRemoteService
- func (h *RobotRemoteService) GetKeywordArguments(r *http.Request, args *KeywordInput, reply *KeywordArgumentsReturnValue) error
- func (h *RobotRemoteService) GetKeywordDocumentation(r *http.Request, args *KeywordInput, reply *KeywordDocumentationReturnValue) error
- func (h *RobotRemoteService) GetKeywordNames(r *http.Request, args *struct{}, reply *KeywordNamesReturnValue) error
- func (h *RobotRemoteService) RunKeyword(r *http.Request, args *KeywordAndArgsInput, reply *RunKeywordReturnValue) error
- func (h *RobotRemoteService) StopRemoteServer()
- type RunKeywordReturnValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeywordAndArgsInput ¶
type KeywordAndArgsInput struct { KeywordName string KeywordAguments []interface{} }
type KeywordArgumentsReturnValue ¶
type KeywordArgumentsReturnValue struct {
KeywordAguments []interface{}
}
type KeywordDocumentationReturnValue ¶
type KeywordDocumentationReturnValue struct {
KeywordDocumentation string
}
type KeywordInput ¶
type KeywordInput struct {
KeywordName string
}
type KeywordNamesReturnValue ¶
type KeywordNamesReturnValue struct {
Keywords []interface{}
}
type RobotRemoteService ¶
type RobotRemoteService struct{}
func (*RobotRemoteService) GetKeywordArguments ¶
func (h *RobotRemoteService) GetKeywordArguments(r *http.Request, args *KeywordInput, reply *KeywordArgumentsReturnValue) error
sample XML-RPC input: <methodCall><methodName>GetKeywordArguments</methodName><params><param><value><string>KeywordName</string></value></param></params></methodCall> sample XML-RPC output: <methodResponse><params><param><value><array><data><value><string>arg1</string></value>...</data></array></value></param></params></methodResponse>
func (*RobotRemoteService) GetKeywordDocumentation ¶
func (h *RobotRemoteService) GetKeywordDocumentation(r *http.Request, args *KeywordInput, reply *KeywordDocumentationReturnValue) error
sample XML-RPC input: <methodCall><methodName>GetKeywordDocumentation</methodName><params><param><value><string>KeywordName</string></value></param></params></methodCall> sample XML-RPC output: <methodResponse><params><param><value><string>godoc text</string></value></param></params></methodResponse>
func (*RobotRemoteService) GetKeywordNames ¶
func (h *RobotRemoteService) GetKeywordNames(r *http.Request, args *struct{}, reply *KeywordNamesReturnValue) error
sample XML-RPC input: <methodCall><methodName>GetKeywordNames</methodName><params></params></methodCall>
sample XML-RPC output: * <methodResponse><params><param><value><array><data> * <value><string>TruthOfLife</string></value> * <value><string>StringsShouldBeEqual</string></value> * <value><string>StopRemoteServer</string></value> * </data></array></value></param></params></methodResponse>
func (*RobotRemoteService) RunKeyword ¶
func (h *RobotRemoteService) RunKeyword(r *http.Request, args *KeywordAndArgsInput, reply *RunKeywordReturnValue) error
e.g. sample XML-RPC input * <methodCall><methodName>RunKeyword</methodName> * <params> * <param><value><string>KeywordName</string></value></param> * <param><value><array><data> * <value><string>keyword_arg1</string></value> * <value><string>keyword_arg2</string></value> * </data></array></value></param> * </params></methodCall> * * sample XML-RPC output * <methodResponse> * <params> * <param> * <value><struct> * <member> * <name>return</name> * <value><int>42</int></value> * </member> * <member> * <name>status</name> * <value><string>PASS</string></value> * </member> * <member> * <name>output</name> * <value><string></string></value> * </member> * <member> * <name>error</name> * <value><string></string></value> * </member> * <member> * <name>traceback</name> * <value><string></string></value> * </member> * </struct></value> * </param> * </params> * </methodResponse>
this function doesn't fully work yet, see https://github.com/divan/gorilla-xmlrpc/issues/ #16 and 18
func (*RobotRemoteService) StopRemoteServer ¶
func (h *RobotRemoteService) StopRemoteServer()