support

package
v1.0.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL