Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Path string // TODO: remove Query string // TODO: remove RequestBody string ResponseStatusCode int ResponseStatus string ResponseContentType string ResponseBody string ResponseHeaders map[string][]string DbQuery string DbResponse []string Errors []error Test TestInterface }
Result of test execution
type TestInterface ¶
type TestInterface interface { ToQuery() string GetRequest() string ToJSON() ([]byte, error) GetMethod() string Path() string GetResponses() map[int]string GetResponse(code int) (string, bool) GetResponseHeaders(code int) (map[string]string, bool) GetName() string Fixtures() []string ServiceMocks() map[string]interface{} Pause() int BeforeScriptPath() string BeforeScriptTimeout() int Cookies() map[string]string Headers() map[string]string ContentType() string GetForm() *Form DbQueryString() string DbResponseJson() []string GetVariables() map[string]string GetVariablesToSet() map[int]map[string]string // setters SetQuery(string) SetMethod(string) SetPath(string) SetRequest(string) SetForm(form *Form) SetResponses(map[int]string) SetHeaders(map[string]string) // comparison properties NeedsCheckingValues() bool IgnoreArraysOrdering() bool DisallowExtraFields() bool // Clone returns copy of current object Clone() TestInterface }
Common Test interface
Click to show internal directories.
Click to hide internal directories.