config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ERR_CONTINUE = "continue"
View Source
const ERR_STOP_ITERATION = "stop_iteration"
View Source
const ERR_STOP_TEST = "stop_test"
View Source
const ERR_STOP_VU = "stop_vu"
View Source
const HTTP_RESPONSE = "HTTP_Response"
View Source
const RE_FIRST = "first"
View Source
const RE_LAST = "last"
View Source
const RE_RANDOM = "random"

Variables

This section is empty.

Functions

func IsValidHTTPMethod

func IsValidHTTPMethod(method string) bool

Check for method validity

func StringInSlice

func StringInSlice(a string, list []string) bool

func ValidateTestDefinition

func ValidateTestDefinition(t *TestDef) bool

Validate the Test Definition Consistency

Types

type Default

type Default struct {
	Server   string `yaml:"server"` // Host or Host:Port
	Protocol string `yaml:"protocol"`
	Method   string `yaml:"method"`
}

type Feeder

type Feeder struct {
	Type      string `yaml:"type"`
	Filename  string `yaml:"filename"`
	Separator string `yaml:"separator"`
}

type TestDef

type TestDef struct {
	Version        string                   `yaml:"version"`
	Iterations     int                      `yaml:"iterations"` // (mandatory) -1 implies use of "duration"
	Duration       int                      `yaml:"duration"`
	Users          int                      `yaml:"users"`
	Rampup         int                      `yaml:"rampup"`
	OnError        string                   `yaml:"on_error"` // continue (default) | stop_vu | stop_test
	HttpErrorCodes string                   `yaml:"http_error_codes"`
	Timeout        int                      `yaml:"timeout"` // default is 10s
	DfltValues     Default                  `yaml:"default"`
	Variables      map[string]string        `yaml:"variables"`
	DataFeeder     Feeder                   `yaml:"feeder"`
	Actions        []map[string]interface{} `yaml:"actions"`
}

Jump to

Keyboard shortcuts

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