Documentation
¶
Index ¶
- type ClientWrapper
- type ScenarioCtx
- func (c *ScenarioCtx) DispatchedEventsPayloadsInclude(value *gherkin.DocString) error
- func (c *ScenarioCtx) InTheResponseKeyShouldBeObject(argumentType, value string) error
- func (c *ScenarioCtx) InTheResponseShouldHaveEachOneOfThese(argumentType string, value *gherkin.DocString) error
- func (c *ScenarioCtx) InTheResponseShouldMatch(argumentType string, value *gherkin.DocString) error
- func (c *ScenarioCtx) IsCalledWithArguments(apiName string, arguments *gherkin.DocString) error
- func (c *ScenarioCtx) ListenerIsAdded(numberOfListeners int, ListenerName string) error
- func (c *ScenarioCtx) Reset()
- func (c *ScenarioCtx) TheDatafileIs(datafileName string) error
- func (c *ScenarioCtx) TheResultShouldBeBoolean() error
- func (c *ScenarioCtx) TheResultShouldBeFloat(lv, rv int) error
- func (c *ScenarioCtx) TheResultShouldBeInteger(result int) error
- func (c *ScenarioCtx) TheResultShouldBeString(result string) error
- func (c *ScenarioCtx) TheResultShouldBeTypedBoolean(result string) error
- func (c *ScenarioCtx) TheResultShouldMatchList(list string) error
- func (c *ScenarioCtx) ThereAreNoDispatchedEvents() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
type ClientWrapper struct { Client *client.OptimizelyClient DecisionService decision.Service EventDispatcher event.Dispatcher }
ClientWrapper - wrapper around the optimizely client that keeps track of various custom components used with the client
func NewClientWrapper ¶
func NewClientWrapper(datafileName string) ClientWrapper
NewClientWrapper returns a new instance of the optly wrapper
func (*ClientWrapper) InvokeAPI ¶
func (c *ClientWrapper) InvokeAPI(request models.APIOptions) (models.APIResponse, error)
InvokeAPI processes request with arguments
type ScenarioCtx ¶
type ScenarioCtx struct {
// contains filtered or unexported fields
}
ScenarioCtx holds both apiOptions and apiResponse for a scenario
func (*ScenarioCtx) DispatchedEventsPayloadsInclude ¶
func (c *ScenarioCtx) DispatchedEventsPayloadsInclude(value *gherkin.DocString) error
DispatchedEventsPayloadsInclude represents a step in the feature file
func (*ScenarioCtx) InTheResponseKeyShouldBeObject ¶
func (c *ScenarioCtx) InTheResponseKeyShouldBeObject(argumentType, value string) error
InTheResponseKeyShouldBeObject represents a step in the feature file
func (*ScenarioCtx) InTheResponseShouldHaveEachOneOfThese ¶
func (c *ScenarioCtx) InTheResponseShouldHaveEachOneOfThese(argumentType string, value *gherkin.DocString) error
InTheResponseShouldHaveEachOneOfThese represents a step in the feature file
func (*ScenarioCtx) InTheResponseShouldMatch ¶
func (c *ScenarioCtx) InTheResponseShouldMatch(argumentType string, value *gherkin.DocString) error
InTheResponseShouldMatch represents a step in the feature file
func (*ScenarioCtx) IsCalledWithArguments ¶
func (c *ScenarioCtx) IsCalledWithArguments(apiName string, arguments *gherkin.DocString) error
IsCalledWithArguments represents a step in the feature file
func (*ScenarioCtx) ListenerIsAdded ¶
func (c *ScenarioCtx) ListenerIsAdded(numberOfListeners int, ListenerName string) error
ListenerIsAdded represents a step in the feature file
func (*ScenarioCtx) Reset ¶
func (c *ScenarioCtx) Reset()
Reset clears all data before each scenario
func (*ScenarioCtx) TheDatafileIs ¶
func (c *ScenarioCtx) TheDatafileIs(datafileName string) error
TheDatafileIs represents a step in the feature file
func (*ScenarioCtx) TheResultShouldBeBoolean ¶
func (c *ScenarioCtx) TheResultShouldBeBoolean() error
TheResultShouldBeBoolean represents a step in the feature file
func (*ScenarioCtx) TheResultShouldBeFloat ¶
func (c *ScenarioCtx) TheResultShouldBeFloat(lv, rv int) error
TheResultShouldBeFloat represents a step in the feature file
func (*ScenarioCtx) TheResultShouldBeInteger ¶
func (c *ScenarioCtx) TheResultShouldBeInteger(result int) error
TheResultShouldBeInteger represents a step in the feature file
func (*ScenarioCtx) TheResultShouldBeString ¶
func (c *ScenarioCtx) TheResultShouldBeString(result string) error
TheResultShouldBeString represents a step in the feature file
func (*ScenarioCtx) TheResultShouldBeTypedBoolean ¶
func (c *ScenarioCtx) TheResultShouldBeTypedBoolean(result string) error
TheResultShouldBeTypedBoolean represents a step in the feature file
func (*ScenarioCtx) TheResultShouldMatchList ¶
func (c *ScenarioCtx) TheResultShouldMatchList(list string) error
TheResultShouldMatchList represents a step in the feature file
func (*ScenarioCtx) ThereAreNoDispatchedEvents ¶
func (c *ScenarioCtx) ThereAreNoDispatchedEvents() error
ThereAreNoDispatchedEvents represents a step in the feature file