Documentation ¶
Index ¶
- type JUnitFailure
- type JUnitSkipMessage
- type JUnitTestCase
- type JUnitTestSuite
- type JUnitTestSuites
- type RequestMatchError
- type Runner
- type RunnerConfigFunc
- func WithEnvironment(env []string) RunnerConfigFunc
- func WithJUnitReportPath(path string) RunnerConfigFunc
- func WithLogger(logger logging.Logger) RunnerConfigFunc
- func WithScenarioRunnerFactory(factory ScenarioRunnerFactory) RunnerConfigFunc
- func WithVerbosityLevel(verbosityLevel logging.VerbosityLevel) RunnerConfigFunc
- type ScenarioContext
- type ScenarioRunner
- type ScenarioRunnerFactory
- type ScenarioRunnerFactoryFunc
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JUnitFailure ¶
type JUnitSkipMessage ¶
type JUnitSkipMessage struct {
Message string `xml:"message,attr"`
}
type JUnitTestCase ¶
type JUnitTestCase struct { XMLName xml.Name `xml:"testcase"` Name string `xml:"name,attr"` Time string `xml:"time,attr"` Failure *JUnitFailure `xml:"failure,omitempty"` SkipMessage *JUnitSkipMessage `xml:"skipped,omitempty"` }
type JUnitTestSuite ¶
type JUnitTestSuites ¶
type JUnitTestSuites struct { XMLName xml.Name `xml:"testsuites"` Suites []JUnitTestSuite }
type RequestMatchError ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
type RunnerConfigFunc ¶
type RunnerConfigFunc func(*Runner)
func WithEnvironment ¶
func WithEnvironment(env []string) RunnerConfigFunc
func WithJUnitReportPath ¶
func WithJUnitReportPath(path string) RunnerConfigFunc
func WithLogger ¶
func WithLogger(logger logging.Logger) RunnerConfigFunc
func WithScenarioRunnerFactory ¶
func WithScenarioRunnerFactory(factory ScenarioRunnerFactory) RunnerConfigFunc
func WithVerbosityLevel ¶
func WithVerbosityLevel(verbosityLevel logging.VerbosityLevel) RunnerConfigFunc
type ScenarioContext ¶
type ScenarioRunner ¶
type ScenarioRunner interface { Run(client *http.Client, context map[string]interface{}) map[string]interface{} Results() []*TestResult Errored() bool Failed() bool Resolved() bool Duration() time.Duration }
func NewScenarioRunner ¶
func NewScenarioRunner( scenario *config.Scenario, logger logging.Logger, verbosityLevel logging.VerbosityLevel, testSemaphore *semaphore.Weighted, ) ScenarioRunner
type ScenarioRunnerFactory ¶
type ScenarioRunnerFactory interface { New( scenario *config.Scenario, logger logging.Logger, verbosityLevel logging.VerbosityLevel, testSemaphore *semaphore.Weighted) ScenarioRunner }
type ScenarioRunnerFactoryFunc ¶
type ScenarioRunnerFactoryFunc func( scenario *config.Scenario, logger logging.Logger, verbosityLevel logging.VerbosityLevel, testSemaphore *semaphore.Weighted, ) ScenarioRunner
func (ScenarioRunnerFactoryFunc) New ¶
func (f ScenarioRunnerFactoryFunc) New( scenario *config.Scenario, logger logging.Logger, verbosityLevel logging.VerbosityLevel, testSemaphore *semaphore.Weighted, ) ScenarioRunner
type TestResult ¶
type TestResult struct { Index int Disabled bool Skipped bool Request *http.Request RequestBody string Response *http.Response ResponseBody string RequestMatchErrors []RequestMatchError Err error Duration time.Duration }
func (*TestResult) Errored ¶
func (r *TestResult) Errored() bool
func (*TestResult) Failed ¶
func (r *TestResult) Failed() bool
Click to show internal directories.
Click to hide internal directories.