cucumber

package
v0.0.0-...-d0f23b2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	Elements    []Scenario `json:"elements"`
	Uri         string     `json:"uri"`
	Id          string     `json:"id"`
	Keyword     string     `json:"keyword"`
	Name        string     `json:"name"`
	Description string     `json:"description"`
	Linenumber  int        `json:"line"`
}

func FormatFeature

func FormatFeature(gherkinFeature *msgs.GherkinDocument_Feature) Feature

func FormatFeatureWithScenario

func FormatFeatureWithScenario(gherkinFeature *msgs.GherkinDocument_Feature) Feature

func GenerateFeature

func GenerateFeature(name string, id string, description string, line int) Feature

func (*Feature) AddScenario

func (f *Feature) AddScenario(sc Scenario)

type Filelocation

type Filelocation struct {
	Location string `json:"location"`
}

type Scenario

type Scenario struct {
	Steps       []Step `json:"steps"`
	Tags        []Tag  `json:"tags"`
	Id          string `json:"id"`
	Keyword     string `json:"keyword"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

func FormatScenario

func FormatScenario(gherkinScenario *msgs.GherkinDocument_Feature_Scenario) Scenario

func FormatScenarioWithSteps

func FormatScenarioWithSteps(gherkinScenario *msgs.GherkinDocument_Feature_Scenario, stepstatus string) Scenario

func GenerateScenario

func GenerateScenario() Scenario

func (*Scenario) AddStep

func (sc *Scenario) AddStep(keyword string, name string, line int, location string, result string)

func (*Scenario) AddStepObj

func (sc *Scenario) AddStepObj(step Step)

type Step

type Step struct {
	StepResult Stepresult `json:"result"`

	Keyword string `json:"keyword"`
	Name    string `json:"name"`
	Line    int    `json:"line"`
	// contains filtered or unexported fields
}

func GenerateStep

func GenerateStep(keyword string, name string, line int, location string) Step

func (*Step) UpdateResult

func (s *Step) UpdateResult(status string, duration int64)

type Stepresult

type Stepresult struct {
	ErrorMsg      string `json:"error_message"`
	RunStatus     string `json:"status"`
	ExecutionTime int64  `json:"duration"`
}

type Tag

type Tag struct {
	Name       string `json:"name"`
	Linenumber int    `json:"line"`
}

func FormatTags

func FormatTags(cucumberTags []*msgs.GherkinDocument_Feature_Tag) []Tag

Jump to

Keyboard shortcuts

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