Versions in this module Expand all Collapse all v1 v1.0.1 Jan 15, 2024 Changes in this version + type Assertion struct + Comparison Comparison + Property string + Source Source + Value string + type Comparison int + const Contains + const DoesNotContain + const Empty + const Equal + const EqualNumber + const HasKey + const HasValue + const IsANumber + const IsGreaterThan + const IsGreaterThanOrEqual + const IsLessThan + const IsLessThanOrEqual + const IsNull + const NotEmpty + const NotEqual + func ComparisonString(s string) (Comparison, error) + func ComparisonValues() []Comparison + func (i *Comparison) UnmarshalJSON(data []byte) error + func (i Comparison) GetMessage() comparisonMessage + func (i Comparison) IsAComparison() bool + func (i Comparison) MarshalJSON() ([]byte, error) + func (i Comparison) String() string + type Response struct + Body string + Header http.Header + StatusCode int + TimeElapsed time.Duration + func NewResponse(restResponse rest.Response, timeElapsed time.Duration) (Response, error) + type ResultAssertion struct + Err error + Message string + Property string + Source Source + Success bool + func NewResultAssertion(comparison Comparison, success bool, v ...interface{}) ResultAssertion + func (ar *ResultAssertion) Print() + type ResultStep struct + Assertions []ResultAssertion + Request rest.Request + Response Response + StepTime time.Duration + StepType StepType + VariablesApplied []ResultVariable + VariablesCreated []ResultVariable + func (step *ResultStep) IsSuccess() bool + type ResultVariable struct + Err error + Key string + NewValue string + Type ResultVariableType + func (rv *ResultVariable) Print() + type ResultVariableType int + const Created + const Used + func ResultVariableTypeString(s string) (ResultVariableType, error) + func ResultVariableTypeValues() []ResultVariableType + func (i *ResultVariableType) UnmarshalJSON(data []byte) error + func (i ResultVariableType) IsAResultVariableType() bool + func (i ResultVariableType) MarshalJSON() ([]byte, error) + func (i ResultVariableType) String() string + type Scenario struct + Description string + ExportedAt int + Name string + Steps []Step + Version string + func InitScenarioFromFile(inputFile string) (Scenario, error) + type ScenarioResult struct + Description string + Name string + StepResults []ResultStep + Version string + func (scenario *ScenarioResult) IsSuccess() bool + type Source int + const ResponseHeader + const ResponseJson + const ResponseStatus + const ResponseText + const ResponseTime + const ResponseXml + func SourceString(s string) (Source, error) + func SourceValues() []Source + func (i *Source) UnmarshalJSON(data []byte) error + func (i Source) IsASource() bool + func (i Source) MarshalJSON() ([]byte, error) + func (i Source) String() string + type Step struct + Assertions []Assertion + Body string + Duration int + Headers map[string][]string + Method string + Skipped bool + StepType StepType + URL string + Variables []Variable + type StepType int + const Pause + const RequestStep + func StepTypeString(s string) (StepType, error) + func StepTypeValues() []StepType + func (i *StepType) UnmarshalJSON(data []byte) error + func (i StepType) IsAStepType() bool + func (i StepType) MarshalJSON() ([]byte, error) + func (i StepType) String() string + type Variable struct + Name string + Property string + Source Source