Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseCheck ¶
type DatabaseResult ¶
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
Errors []error
Test TestInterface
DatabaseResult []DatabaseResult
}
Result of test execution
func (*Result) AllureStatus ¶
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
GetDescription() string
GetStatus() string
SetStatus(string)
Fixtures() []string
ServiceMocks() map[string]interface{}
Pause() int
BeforeScriptPath() string
BeforeScriptTimeout() int
AfterRequestScriptPath() string
AfterRequestScriptTimeout() int
Cookies() map[string]string
Headers() map[string]string
ContentType() string
GetForm() *Form
DbQueryString() string
DbResponseJson() []string
GetVariables() map[string]string
GetCombinedVariables() map[string]string
GetVariablesToSet() map[int]map[string]string
GetDatabaseChecks() []DatabaseCheck
SetDatabaseChecks([]DatabaseCheck)
GetFileName() string
// setters
SetQuery(string)
SetMethod(string)
SetPath(string)
SetRequest(string)
SetForm(form *Form)
SetResponses(map[int]string)
SetHeaders(map[string]string)
SetDbQueryString(string)
SetDbResponseJson([]string)
// comparison properties
NeedsCheckingValues() bool
IgnoreArraysOrdering() bool
DisallowExtraFields() bool
IgnoreDbOrdering() bool
// Clone returns copy of current object
Clone() TestInterface
}
Common Test interface
Click to show internal directories.
Click to hide internal directories.