Documentation ¶
Index ¶
- Variables
- func AfterScenario(fn func(), tags []string, op t.Operator) bool
- func AfterSpec(fn func(), tags []string, op t.Operator) bool
- func AfterStep(fn func(), tags []string, op t.Operator) bool
- func AfterSuite(fn func(), tags []string, op t.Operator) bool
- func BeforeScenario(fn func(), tags []string, op t.Operator) bool
- func BeforeSpec(fn func(), tags []string, op t.Operator) bool
- func BeforeStep(fn func(), tags []string, op t.Operator) bool
- func BeforeSuite(fn func(), tags []string, op t.Operator) bool
- func GetScenarioStore() map[string]interface{}
- func GetSpecStore() map[string]interface{}
- func GetSuiteStore() map[string]interface{}
- func LoadGaugeImpls() error
- func Run()
- func Step(stepDesc string, impl interface{}) bool
- func WriteMessage(message string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
var CustomScreenshotFn func() []byte
CustomScreenshotFn to set custom screenshot Returns a byte array which will be set as screenshot in case of failures
Functions ¶
func AfterScenario ¶
AfterScenario hook is executed after every scenario execution. This can be used for any spec cleanup after execution. It can be executed for only a specific set of specs using Tags. This hook will be executed only for scenarios which satisfy the tags and tag operator(AND or OR) mentioned.
func AfterSpec ¶
AfterSpec hook is executed after every spec execution. This can be used for any spec cleanup after execution. It can be executed for only a specific set of specs using Tags. This hook will be executed only for specs which satisfy the tags and tag operator(AND or OR) mentioned.
func AfterStep ¶
AfterStep hook is executed before after every step execution. This can be used for any step cleanup after execution.
func AfterSuite ¶
AfterSuite hook is executed after hook execution is completed. This can be used for any cleanup after entire execution.
func BeforeScenario ¶
BeforeScenario hook is executed before every scenario execution begins. This can be used for any scenario setup before execution begins. It can be executed for only a specific set of specs using Tags. This hook will be executed only for scenario which satisfy the tags and tag operator(AND or OR) mentioned.
func BeforeSpec ¶
BeforeSpec hook is executed before every spec execution begins This can be used for any spec setup before execution begins. It can be executed for only a specific set of specs using Tags. This hook will be executed only for specs which satisfy the tags and tag operator(AND or OR) mentioned.
func BeforeStep ¶
BeforeStep hook is executed before every step execution begins. This can be used for any step setup before execution begins.
func BeforeSuite ¶
BeforeSuite hook is executed before suite execution begins This can be used for any setup before execution begins.
func GetScenarioStore ¶
func GetScenarioStore() map[string]interface{}
GetScenarioStore returns the scenario data store which keeps values added to it during the lifecycle of the scenario execution. Values are cleared after every scenario executes.
func GetSpecStore ¶
func GetSpecStore() map[string]interface{}
GetSpecStore returns the spec data store which keeps values added to it during the lifecycle of the specification execution. Values are cleared after every specification executes.
func GetSuiteStore ¶
func GetSuiteStore() map[string]interface{}
GetSuiteStore returns the suite store which keeps values added to it during the lifecycle of entire suite execution. Values are cleared after entire suite execution.
func LoadGaugeImpls ¶
func LoadGaugeImpls() error
LoadGaugeImpls builds the go project and runs the generated go file, so that the gauge specific implementations get scanned
func Step ¶
Step is an executable component of a specification. This function registers a step with given step description/step text and its implementation.
func WriteMessage ¶
func WriteMessage(message string, args ...interface{})
WriteMessage adds additional information at exec time to be available on reports
Types ¶
This section is empty.