Documentation ¶
Index ¶
- type ActorAPI
- func (a *ActorAPI) AddQueryRequestParamFromStoredKey(param, key string) error
- func (a *ActorAPI) AddQueryRequestParamWithValue(param, value string) error
- func (a *ActorAPI) AddQueryRequestParams(dt *godog.Table) error
- func (a *ActorAPI) HandleHTTPRequest(method, endpointPath string, payload io.Reader) (failedReason error)
- func (a *ActorAPI) IAddURLPath(path string) error
- func (a *ActorAPI) IAddURLPathByStoredKey(key string) error
- func (a *ActorAPI) ICreatePayload(rawPayload string) error
- func (a *ActorAPI) ICreatePayloadWithValue(payloadTemplate, key string) error
- func (a *ActorAPI) ISendPreBuiltRequestWithPath(method, endpoint string) error
- func (a *ActorAPI) ISendPreBuiltRequestWithPathAndPayload(method, endpoint, payloadFile string) error
- func (a *ActorAPI) ISendPreBuiltRequestWithStoredPathAndPayload(method, endpoint string) error
- func (a *ActorAPI) ISendRequestWithPayload(method, endpoint string, payloadFile string) error
- func (a *ActorAPI) ISendSimpleRequestTo(method, endpoint string) error
- func (a *ActorAPI) ISetHeaderWithValue(name string, value string) error
- func (a *ActorAPI) IUseThisPayload(payloadTemplate string) error
- func (a *ActorAPI) IWaitSeconds(amount string) error
- func (a *ActorAPI) IWillUseThisBaseHostName(base string) error
- func (a *ActorAPI) IWillUseThisBaseHostNameReadEnv(hostEnv string) error
- func (a *ActorAPI) MetricsRequestDropIsLowerThan(p string) error
- func (a *ActorAPI) PrintLastResponse() error
- func (a *ActorAPI) PrintMetricsResult() error
- func (a *ActorAPI) SaveToMemory(key, value string)
- func (a *ActorAPI) SetConcurrentRequestsAmount(reqAmount, reqDelayMilliseconds string) error
- func (a *ActorAPI) TheResponseCodeShouldBe(code int) error
- func (a *ActorAPI) TheResponseShouldBeEmpty() error
- func (a *ActorAPI) TheResponseShouldHaveValueInRegex(expectedValue, regexPattern string) error
- func (a *ActorAPI) TheResponseShouldMatchJSON(body *godog.DocString) error
- func (a *ActorAPI) TheResponseShouldMatchJsonSchema(path string) error
- func (a *ActorAPI) TheResponseShouldMatchRegex(regexPattern string) error
- func (a *ActorAPI) WhenCurrentTimeAfter(clock string) error
- func (a *ActorAPI) WhenCurrentTimeBefore(clock string) error
- type HTTPResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorAPI ¶
type ActorAPI struct { HTTPClient *http.Client HTTPLastResp HTTPResponse HTTPBaseHost url.URL HTTPHeaders map[string]string HTTPQuery map[string]string HTTPPath []string Payload string Storage map[string]string StressConcurrentRequests uint32 StressConcurrentRequestsDelay time.Duration Metrics *metrics.Collector }
ActorAPI container context
func (*ActorAPI) AddQueryRequestParamFromStoredKey ¶ added in v0.3.2
func (*ActorAPI) AddQueryRequestParamWithValue ¶ added in v0.3.2
func (*ActorAPI) AddQueryRequestParams ¶ added in v0.3.2
func (*ActorAPI) HandleHTTPRequest ¶ added in v0.3.3
func (a *ActorAPI) HandleHTTPRequest(method, endpointPath string, payload io.Reader) (failedReason error)
HandleHTTPRequest ...
func (*ActorAPI) IAddURLPath ¶
func (*ActorAPI) IAddURLPathByStoredKey ¶
func (*ActorAPI) ICreatePayload ¶
func (*ActorAPI) ICreatePayloadWithValue ¶
func (*ActorAPI) ISendPreBuiltRequestWithPath ¶
func (*ActorAPI) ISendPreBuiltRequestWithPathAndPayload ¶
func (*ActorAPI) ISendPreBuiltRequestWithStoredPathAndPayload ¶
func (*ActorAPI) ISendRequestWithPayload ¶
func (*ActorAPI) ISendSimpleRequestTo ¶
func (*ActorAPI) ISetHeaderWithValue ¶
func (*ActorAPI) IUseThisPayload ¶
func (*ActorAPI) IWaitSeconds ¶
func (*ActorAPI) IWillUseThisBaseHostName ¶
func (*ActorAPI) IWillUseThisBaseHostNameReadEnv ¶
func (*ActorAPI) MetricsRequestDropIsLowerThan ¶
func (*ActorAPI) PrintLastResponse ¶
func (*ActorAPI) PrintMetricsResult ¶
func (*ActorAPI) SaveToMemory ¶ added in v0.3.3
SaveToMemory key and value in ActorAPI
func (*ActorAPI) SetConcurrentRequestsAmount ¶
func (*ActorAPI) TheResponseCodeShouldBe ¶
func (*ActorAPI) TheResponseShouldBeEmpty ¶
func (*ActorAPI) TheResponseShouldHaveValueInRegex ¶
func (*ActorAPI) TheResponseShouldMatchJSON ¶
func (*ActorAPI) TheResponseShouldMatchJsonSchema ¶
func (*ActorAPI) TheResponseShouldMatchRegex ¶
func (*ActorAPI) WhenCurrentTimeAfter ¶
func (*ActorAPI) WhenCurrentTimeBefore ¶
type HTTPResponse ¶
HTTPResponse between actions
Click to show internal directories.
Click to hide internal directories.