Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expect ¶
type Expect struct {
Code string `yaml:"code,omitempty"`
Header yaml.MapSlice `yaml:"header,omitempty"`
Body interface{} `yaml:"body,omitempty"`
}
Expect represents expected response values.
type HTTP ¶
type HTTP struct{}
HTTP is a protocol type for the scenarigo step.
func (*HTTP) UnmarshalExpect ¶
func (p *HTTP) UnmarshalExpect(b []byte) (protocol.AssertionBuilder, error)
UnmarshalExpect implements protocol.Protocol interface.
func (*HTTP) UnmarshalOption ¶ added in v0.18.0
UnmarshalOption implements protocol.Protocol interface.
type Request ¶
type Request struct {
Client string `yaml:"client,omitempty"`
Method string `yaml:"method,omitempty"`
URL string `yaml:"url,omitempty"`
Query interface{} `yaml:"query,omitempty"`
Header interface{} `yaml:"header,omitempty"`
Body interface{} `yaml:"body,omitempty"`
}
Request represents a request.
type RequestExtractor ¶ added in v0.17.0
type RequestExtractor Request
RequestExtractor represents a request dump.
func (RequestExtractor) ExtractByKey ¶ added in v0.17.0
func (r RequestExtractor) ExtractByKey(key string) (interface{}, bool)
ExtractByKey implements query.KeyExtractor interface.
type ResponseExtractor ¶ added in v0.17.0
type ResponseExtractor response
ResponseExtractor represents a response dump.
func (ResponseExtractor) ExtractByKey ¶ added in v0.17.0
func (r ResponseExtractor) ExtractByKey(key string) (interface{}, bool)
ExtractByKey implements query.KeyExtractor interface.
Click to show internal directories.
Click to hide internal directories.