Documentation ¶
Index ¶
- func ShouldMatchYaml(actual interface{}, expected ...interface{}) string
- type Action
- type ActionContext
- type ContextBuilder
- func (instance ContextBuilder) Build() core.ExecutionContext
- func (instance ContextBuilder) Set(key string, value interface{}) ContextBuilder
- func (instance ContextBuilder) SetDefault(actionType string, key string, value interface{}) ContextBuilder
- func (instance ContextBuilder) SetList(key string, value []core.ExecutionContext) ContextBuilder
- type DummyActionBuilder
- type EmptyAssertionParser
- type ExactAssertionParser
- type ExecutionJob
- type ExecutionPlan
- type ExecutionPlanParser
- func (instance *ExecutionPlanParser) AddActionParser(actionType string, parser core.ExecutionActionParser)
- func (instance *ExecutionPlanParser) AddAssertionParser(assertionType string, parser core.ExecutionAssertionParser)
- func (instance *ExecutionPlanParser) AddExtractorParser(assertionType string, parser core.ExecutionExtractorParser)
- func (instance *ExecutionPlanParser) Parse(data string) (core.Plan, error)
- type ExecutionStep
- type GreaterThanAssertionParser
- type GreaterThanOrEqualAssertionParser
- type IPanicActionBuilder
- type JSONPathExtractorBuilder
- func (instance JSONPathExtractorBuilder) Build() map[string]interface{}
- func (instance JSONPathExtractorBuilder) JSONPath(value string) JSONPathExtractorBuilder
- func (instance JSONPathExtractorBuilder) Key(value string) JSONPathExtractorBuilder
- func (instance JSONPathExtractorBuilder) Name(value string) JSONPathExtractorBuilder
- func (instance JSONPathExtractorBuilder) Scope(value string) JSONPathExtractorBuilder
- type JSONPathExtractorParser
- type JobBuilder
- func (instance *JobBuilder) AddAfter(after Action) *JobBuilder
- func (instance *JobBuilder) AddBefore(before Action) *JobBuilder
- func (instance *JobBuilder) Build() ExecutionJob
- func (instance *JobBuilder) CreateStep() *StepBuilder
- func (instance *JobBuilder) CurrentStepBuilder() *StepBuilder
- func (instance *JobBuilder) WithContext(context map[string]interface{}) *JobBuilder
- func (instance *JobBuilder) WithName(name string) *JobBuilder
- type KeyValueExtractorParser
- type LessThanAssertionParser
- type LessThanOrEqualAssertionParser
- type NotEmptyAssertionParser
- type NotEqualAssertionParser
- type PlanBuilder
- func (instance *PlanBuilder) AddAfter(after Action) *PlanBuilder
- func (instance *PlanBuilder) AddBefore(before Action) *PlanBuilder
- func (instance *PlanBuilder) Build() ExecutionPlan
- func (instance *PlanBuilder) BuildAndSave() (*os.File, error)
- func (instance PlanBuilder) BuildContext() ContextBuilder
- func (instance *PlanBuilder) CreateJob(arg ...string) *JobBuilder
- func (instance PlanBuilder) DummyAction() DummyActionBuilder
- func (instance PlanBuilder) EmptyAssertion(key string) map[string]interface{}
- func (instance PlanBuilder) ExactAssertion(key string, expected interface{}) map[string]interface{}
- func (instance PlanBuilder) GreaterThanAssertion(key string, expected interface{}) map[string]interface{}
- func (instance PlanBuilder) GreaterThanOrEqualAssertion(key string, expected interface{}) map[string]interface{}
- func (instance PlanBuilder) HTTPAction() RequestBuilder
- func (instance PlanBuilder) IPanicAction() IPanicActionBuilder
- func (instance PlanBuilder) JSONPathExtractor() JSONPathExtractorBuilder
- func (instance PlanBuilder) LessThanAssertion(key string, expected interface{}) map[string]interface{}
- func (instance PlanBuilder) LessThanOrEqualAssertion(key string, expected interface{}) map[string]interface{}
- func (instance PlanBuilder) NotEmptyAssertion(key string) map[string]interface{}
- func (instance PlanBuilder) NotEqualAssertion(key string, expected interface{}) map[string]interface{}
- func (instance PlanBuilder) RegexExtractor() RegexExtractorBuilder
- func (instance *PlanBuilder) SetDuration(value string) *PlanBuilder
- func (instance *PlanBuilder) SetIterations(value int) *PlanBuilder
- func (instance *PlanBuilder) SetRandom(value bool) *PlanBuilder
- func (instance *PlanBuilder) SetWaitTime(value string) *PlanBuilder
- func (instance *PlanBuilder) SetWorkers(value int) *PlanBuilder
- func (instance *PlanBuilder) WithContext(context core.ExecutionContext) *PlanBuilder
- func (instance *PlanBuilder) WithName(name string) *PlanBuilder
- func (instance PlanBuilder) XPathExtractor() XPathExtractorBuilder
- type RegexExtractorBuilder
- func (instance RegexExtractorBuilder) Build() map[string]interface{}
- func (instance RegexExtractorBuilder) Key(value string) RegexExtractorBuilder
- func (instance RegexExtractorBuilder) Match(value string) RegexExtractorBuilder
- func (instance RegexExtractorBuilder) Name(value string) RegexExtractorBuilder
- func (instance RegexExtractorBuilder) Scope(value string) RegexExtractorBuilder
- type RegexExtractorParser
- type RequestBuilder
- func (instance RequestBuilder) Body(value string) RequestBuilder
- func (instance RequestBuilder) Build() map[string]interface{}
- func (instance RequestBuilder) Header(key string, value string) RequestBuilder
- func (instance RequestBuilder) Method(value string) RequestBuilder
- func (instance RequestBuilder) Timeout(value int) RequestBuilder
- func (instance RequestBuilder) URL(value string) RequestBuilder
- type StepBuilder
- func (instance *StepBuilder) AddAfter(after Action) *StepBuilder
- func (instance *StepBuilder) AddBefore(before Action) *StepBuilder
- func (instance *StepBuilder) Build() ExecutionStep
- func (instance *StepBuilder) ToExecuteAction(data Action) *StepBuilder
- func (instance *StepBuilder) WithAssertion(data map[string]interface{}) *StepBuilder
- func (instance *StepBuilder) WithExtractor(data map[string]interface{}) *StepBuilder
- func (instance *StepBuilder) WithName(name string) *StepBuilder
- type XPathExtractorBuilder
- func (instance XPathExtractorBuilder) Build() map[string]interface{}
- func (instance XPathExtractorBuilder) Key(value string) XPathExtractorBuilder
- func (instance XPathExtractorBuilder) Name(value string) XPathExtractorBuilder
- func (instance XPathExtractorBuilder) Scope(value string) XPathExtractorBuilder
- func (instance XPathExtractorBuilder) XPath(value string) XPathExtractorBuilder
- type XPathExtractorParser
- type YAMLSummaryBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldMatchYaml ¶
func ShouldMatchYaml(actual interface{}, expected ...interface{}) string
Types ¶
type ContextBuilder ¶
type ContextBuilder struct {
// contains filtered or unexported fields
}
ContextBuilder ...
func (ContextBuilder) Build ¶
func (instance ContextBuilder) Build() core.ExecutionContext
Build ...
func (ContextBuilder) Set ¶
func (instance ContextBuilder) Set(key string, value interface{}) ContextBuilder
Set ...
func (ContextBuilder) SetDefault ¶
func (instance ContextBuilder) SetDefault(actionType string, key string, value interface{}) ContextBuilder
SetDefaults ...
func (ContextBuilder) SetList ¶
func (instance ContextBuilder) SetList(key string, value []core.ExecutionContext) ContextBuilder
SetList ...
type DummyActionBuilder ¶
type DummyActionBuilder struct {
// contains filtered or unexported fields
}
DummyActionBuilder ...
func (DummyActionBuilder) Build ¶
func (instance DummyActionBuilder) Build() map[string]interface{}
Build ...
func (DummyActionBuilder) LogToFile ¶
func (instance DummyActionBuilder) LogToFile(path string) DummyActionBuilder
LogToFile ...
func (DummyActionBuilder) Set ¶
func (instance DummyActionBuilder) Set(key string, value interface{}) DummyActionBuilder
Set ...
type ExecutionJob ¶
type ExecutionJob struct { Name string `json:"name,omitempty"` Before []Action `json:"before,omitempty"` Steps []ExecutionStep `json:"steps,omitempty"` Context map[string]interface{} `json:"context,omitempty"` After []Action `json:"after,omitempty"` }
ExecutionJob ...
type ExecutionPlan ¶
type ExecutionPlan struct { Iterations int `json:"iterations,omitempty"` Random bool `json:"random"` Workers int `json:"workers,omitempty"` WaitTime string `json:"waitTime,omitempty"` Duration string `json:"duration,omitempty"` Name string `json:"name,omitempty"` Context map[string]interface{} `json:"context,omitempty"` Before []Action `json:"before,omitempty"` Jobs []ExecutionJob `json:"jobs,omitempty"` After []Action `json:"after,omitempty"` }
ExecutionPlan ...
type ExecutionPlanParser ¶
type ExecutionPlanParser struct { ExecutionActionParsers map[string]core.ExecutionActionParser ExecutionAssertionParsers map[string]core.ExecutionAssertionParser ExecutionExtractorParsers map[string]core.ExecutionExtractorParser }
ExecutionPlanParser ...
func CreateExecutionPlanParser ¶
func CreateExecutionPlanParser(registry core.Registry) *ExecutionPlanParser
CreateExecutionPlanParser ...
func (*ExecutionPlanParser) AddActionParser ¶
func (instance *ExecutionPlanParser) AddActionParser(actionType string, parser core.ExecutionActionParser)
AddActionParser ...
func (*ExecutionPlanParser) AddAssertionParser ¶
func (instance *ExecutionPlanParser) AddAssertionParser(assertionType string, parser core.ExecutionAssertionParser)
AddAssertionParser ...
func (*ExecutionPlanParser) AddExtractorParser ¶
func (instance *ExecutionPlanParser) AddExtractorParser(assertionType string, parser core.ExecutionExtractorParser)
AddExtractorParser ...
type ExecutionStep ¶
type ExecutionStep struct { Name string `json:"name,omitempty"` Before []Action `json:"before,omitempty"` Action Action `json:"action,omitempty"` Extractors []map[string]interface{} `json:"extractors,omitempty"` Assertions []map[string]interface{} `json:"assertions,omitempty"` After []Action `json:"after,omitempty"` }
ExecutionStep ...
type GreaterThanAssertionParser ¶
type GreaterThanAssertionParser struct{}
GreaterThanAssertionParser ...
func (GreaterThanAssertionParser) Key ¶
func (instance GreaterThanAssertionParser) Key() string
Key ...
type GreaterThanOrEqualAssertionParser ¶
type GreaterThanOrEqualAssertionParser struct{}
GreaterThanOrEqualAssertionParser ...
func (GreaterThanOrEqualAssertionParser) Key ¶
func (instance GreaterThanOrEqualAssertionParser) Key() string
Key ...
type IPanicActionBuilder ¶
type IPanicActionBuilder struct {
// contains filtered or unexported fields
}
IPanicActionBuilder ...
func (IPanicActionBuilder) Build ¶
func (instance IPanicActionBuilder) Build() map[string]interface{}
Build ...
type JSONPathExtractorBuilder ¶
type JSONPathExtractorBuilder struct {
// contains filtered or unexported fields
}
JSONPathExtractorBuilder ...
func (JSONPathExtractorBuilder) Build ¶
func (instance JSONPathExtractorBuilder) Build() map[string]interface{}
Build ...
func (JSONPathExtractorBuilder) JSONPath ¶
func (instance JSONPathExtractorBuilder) JSONPath(value string) JSONPathExtractorBuilder
JSONPath ...
func (JSONPathExtractorBuilder) Key ¶
func (instance JSONPathExtractorBuilder) Key(value string) JSONPathExtractorBuilder
Key ...
func (JSONPathExtractorBuilder) Name ¶
func (instance JSONPathExtractorBuilder) Name(value string) JSONPathExtractorBuilder
Name ...
func (JSONPathExtractorBuilder) Scope ¶
func (instance JSONPathExtractorBuilder) Scope(value string) JSONPathExtractorBuilder
Scope ...
type JobBuilder ¶
type JobBuilder struct { Name string StepBuilders []*StepBuilder Context map[string]interface{} Before []Action After []Action }
JobBuilder ...
func (*JobBuilder) AddAfter ¶
func (instance *JobBuilder) AddAfter(after Action) *JobBuilder
AddAfter ...
func (*JobBuilder) AddBefore ¶
func (instance *JobBuilder) AddBefore(before Action) *JobBuilder
AddBefore ...
func (*JobBuilder) CreateStep ¶
func (instance *JobBuilder) CreateStep() *StepBuilder
CreateStep ...
func (*JobBuilder) CurrentStepBuilder ¶
func (instance *JobBuilder) CurrentStepBuilder() *StepBuilder
CurrentStepBuilder ...
func (*JobBuilder) WithContext ¶
func (instance *JobBuilder) WithContext(context map[string]interface{}) *JobBuilder
WithContext ...
func (*JobBuilder) WithName ¶
func (instance *JobBuilder) WithName(name string) *JobBuilder
WithName ...
type LessThanOrEqualAssertionParser ¶
type LessThanOrEqualAssertionParser struct{}
LessThanOrEqualAssertionParser ...
func (LessThanOrEqualAssertionParser) Key ¶
func (instance LessThanOrEqualAssertionParser) Key() string
Key ...
type PlanBuilder ¶
type PlanBuilder struct { Name string Iterations int Random bool NumberOfWorkers int WaitTime string Duration string JobBuilders []*JobBuilder Context core.ExecutionContext Before []Action After []Action }
PlanBuilder ...
func (*PlanBuilder) AddAfter ¶
func (instance *PlanBuilder) AddAfter(after Action) *PlanBuilder
AddAfter ...
func (*PlanBuilder) AddBefore ¶
func (instance *PlanBuilder) AddBefore(before Action) *PlanBuilder
AddBefore ...
func (*PlanBuilder) BuildAndSave ¶
func (instance *PlanBuilder) BuildAndSave() (*os.File, error)
BuildAndSave ... TODO deprecate this
func (PlanBuilder) BuildContext ¶
func (instance PlanBuilder) BuildContext() ContextBuilder
BuildContext ...
func (*PlanBuilder) CreateJob ¶
func (instance *PlanBuilder) CreateJob(arg ...string) *JobBuilder
CreateJob ...
func (PlanBuilder) DummyAction ¶
func (instance PlanBuilder) DummyAction() DummyActionBuilder
DummyAction ...
func (PlanBuilder) EmptyAssertion ¶
func (instance PlanBuilder) EmptyAssertion(key string) map[string]interface{}
EmptyAssertion ...
func (PlanBuilder) ExactAssertion ¶
func (instance PlanBuilder) ExactAssertion(key string, expected interface{}) map[string]interface{}
ExactAssertion ...
func (PlanBuilder) GreaterThanAssertion ¶
func (instance PlanBuilder) GreaterThanAssertion(key string, expected interface{}) map[string]interface{}
GreaterThanAssertion ...
func (PlanBuilder) GreaterThanOrEqualAssertion ¶
func (instance PlanBuilder) GreaterThanOrEqualAssertion(key string, expected interface{}) map[string]interface{}
GreaterThanOrEqualAssertion ...
func (PlanBuilder) HTTPAction ¶
func (instance PlanBuilder) HTTPAction() RequestBuilder
HTTPAction ...
func (PlanBuilder) IPanicAction ¶
func (instance PlanBuilder) IPanicAction() IPanicActionBuilder
IPanicAction ...
func (PlanBuilder) JSONPathExtractor ¶
func (instance PlanBuilder) JSONPathExtractor() JSONPathExtractorBuilder
JSONPathExtractor ...
func (PlanBuilder) LessThanAssertion ¶
func (instance PlanBuilder) LessThanAssertion(key string, expected interface{}) map[string]interface{}
LessThanAssertion ...
func (PlanBuilder) LessThanOrEqualAssertion ¶
func (instance PlanBuilder) LessThanOrEqualAssertion(key string, expected interface{}) map[string]interface{}
LessThanOrEqualAssertion ...
func (PlanBuilder) NotEmptyAssertion ¶
func (instance PlanBuilder) NotEmptyAssertion(key string) map[string]interface{}
NotEmptyAssertion ...
func (PlanBuilder) NotEqualAssertion ¶
func (instance PlanBuilder) NotEqualAssertion(key string, expected interface{}) map[string]interface{}
NotEqualAssertion ...
func (PlanBuilder) RegexExtractor ¶
func (instance PlanBuilder) RegexExtractor() RegexExtractorBuilder
RegexExtractor ...
func (*PlanBuilder) SetDuration ¶
func (instance *PlanBuilder) SetDuration(value string) *PlanBuilder
SetDuration ...
func (*PlanBuilder) SetIterations ¶
func (instance *PlanBuilder) SetIterations(value int) *PlanBuilder
SetIterations ...
func (*PlanBuilder) SetRandom ¶
func (instance *PlanBuilder) SetRandom(value bool) *PlanBuilder
SetRandom ...
func (*PlanBuilder) SetWaitTime ¶
func (instance *PlanBuilder) SetWaitTime(value string) *PlanBuilder
SetWaitTime ...
func (*PlanBuilder) SetWorkers ¶
func (instance *PlanBuilder) SetWorkers(value int) *PlanBuilder
SetWorkers ...
func (*PlanBuilder) WithContext ¶
func (instance *PlanBuilder) WithContext(context core.ExecutionContext) *PlanBuilder
WithContext ...
func (*PlanBuilder) WithName ¶
func (instance *PlanBuilder) WithName(name string) *PlanBuilder
WithName ...
func (PlanBuilder) XPathExtractor ¶
func (instance PlanBuilder) XPathExtractor() XPathExtractorBuilder
XPathExtractor ...
type RegexExtractorBuilder ¶
type RegexExtractorBuilder struct {
// contains filtered or unexported fields
}
RegexExtractorBuilder ...
func (RegexExtractorBuilder) Build ¶
func (instance RegexExtractorBuilder) Build() map[string]interface{}
Build ...
func (RegexExtractorBuilder) Key ¶
func (instance RegexExtractorBuilder) Key(value string) RegexExtractorBuilder
Key ...
func (RegexExtractorBuilder) Match ¶
func (instance RegexExtractorBuilder) Match(value string) RegexExtractorBuilder
Match ...
func (RegexExtractorBuilder) Name ¶
func (instance RegexExtractorBuilder) Name(value string) RegexExtractorBuilder
Name ...
func (RegexExtractorBuilder) Scope ¶
func (instance RegexExtractorBuilder) Scope(value string) RegexExtractorBuilder
Scope ...
type RequestBuilder ¶
type RequestBuilder struct {
// contains filtered or unexported fields
}
RequestBuilder ...
func (RequestBuilder) Body ¶
func (instance RequestBuilder) Body(value string) RequestBuilder
Body ...
func (RequestBuilder) Build ¶
func (instance RequestBuilder) Build() map[string]interface{}
Build ...
func (RequestBuilder) Header ¶
func (instance RequestBuilder) Header(key string, value string) RequestBuilder
Header ...
func (RequestBuilder) Method ¶
func (instance RequestBuilder) Method(value string) RequestBuilder
Method ...
func (RequestBuilder) Timeout ¶
func (instance RequestBuilder) Timeout(value int) RequestBuilder
Timeout ...
type StepBuilder ¶
type StepBuilder struct { Name string Before []Action Action map[string]interface{} Assertions []map[string]interface{} Extractors []map[string]interface{} After []Action }
StepBuilder ...
func (*StepBuilder) AddAfter ¶
func (instance *StepBuilder) AddAfter(after Action) *StepBuilder
AddAfter ...
func (*StepBuilder) AddBefore ¶
func (instance *StepBuilder) AddBefore(before Action) *StepBuilder
AddBefore ...
func (*StepBuilder) ToExecuteAction ¶
func (instance *StepBuilder) ToExecuteAction(data Action) *StepBuilder
ToExecuteAction ...
func (*StepBuilder) WithAssertion ¶
func (instance *StepBuilder) WithAssertion(data map[string]interface{}) *StepBuilder
WithAssertion ...
func (*StepBuilder) WithExtractor ¶
func (instance *StepBuilder) WithExtractor(data map[string]interface{}) *StepBuilder
WithExtractor ...
func (*StepBuilder) WithName ¶
func (instance *StepBuilder) WithName(name string) *StepBuilder
WithName ...
type XPathExtractorBuilder ¶
type XPathExtractorBuilder struct {
// contains filtered or unexported fields
}
XPathExtractorBuilder ...
func (XPathExtractorBuilder) Build ¶
func (instance XPathExtractorBuilder) Build() map[string]interface{}
Build ...
func (XPathExtractorBuilder) Key ¶
func (instance XPathExtractorBuilder) Key(value string) XPathExtractorBuilder
Key ...
func (XPathExtractorBuilder) Name ¶
func (instance XPathExtractorBuilder) Name(value string) XPathExtractorBuilder
Name ...
func (XPathExtractorBuilder) Scope ¶
func (instance XPathExtractorBuilder) Scope(value string) XPathExtractorBuilder
Scope ...
func (XPathExtractorBuilder) XPath ¶
func (instance XPathExtractorBuilder) XPath(value string) XPathExtractorBuilder
XPath ...
type YAMLSummaryBuilder ¶
YAMLSummaryBuilder ...
func (*YAMLSummaryBuilder) Write ¶
func (this *YAMLSummaryBuilder) Write(summary core.ExecutionSummary)
Write ...
Source Files ¶
- ActionContext.go
- AssertionBuilders.go
- Assertions.go
- DummyActionBuilder.go
- EmptyAssertionParser.go
- ExactAssertionParser.go
- ExecutionJob.go
- ExecutionPlan.go
- ExecutionPlanParser.go
- ExecutionStep.go
- GreaterThanAssertionParser.go
- GreaterThanOrEqualAssertionParser.go
- HTTPRequestBuilder.go
- JSONPathExtractorBuilder.go
- JSONPathExtractorParser.go
- JobBuilder.go
- KeyValueExtractorParser.go
- LessThanAssertionParser.go
- LessThanOrEqualAssertionParser.go
- NotEmptyAssertionParser.go
- NotEqualAssertionParser.go
- PlanBuilder.go
- RegexExtractorBuilder.go
- RegexExtractorParser.go
- StepBuilder.go
- SummaryBuilder.go
- XPathExtractorBuilder.go
- XPathExtractorParser.go
- YamlTypes.go