gauge

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func AfterScenario(fn func(), tags []string, op t.Operator) bool

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

func AfterSpec(fn func(), tags []string, op t.Operator) bool

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

func AfterStep(fn func(), tags []string, op t.Operator) bool

AfterStep hook is executed before after every step execution. This can be used for any step cleanup after execution.

func AfterSuite

func AfterSuite(fn func(), tags []string, op t.Operator) bool

AfterSuite hook is executed after hook execution is completed. This can be used for any cleanup after entire execution.

func BeforeScenario

func BeforeScenario(fn func(), tags []string, op t.Operator) bool

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

func BeforeSpec(fn func(), tags []string, op t.Operator) bool

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

func BeforeStep(fn func(), tags []string, op t.Operator) bool

BeforeStep hook is executed before every step execution begins. This can be used for any step setup before execution begins.

func BeforeSuite

func BeforeSuite(fn func(), tags []string, op t.Operator) bool

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(projectRoot string) error

LoadGaugeImpls builds the go project and runs the generated go file, so that the gauge specific implementations get scanned

func Run

func Run()

Run opens a port for listening to gauge. For internal use only.

func Step

func Step(stepDesc string, impl interface{}) bool

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.

Jump to

Keyboard shortcuts

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