core

package
v0.0.0-...-785f0e5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParamRegex = `\$\{(.+?)\}`
)

Functions

This section is empty.

Types

type RequestStat

type RequestStat struct {
	// contains filtered or unexported fields
}

func (*RequestStat) Upload

func (s *RequestStat) Upload()

Upload collect statistic info and report to console

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(taskId int64, sceneData []byte) (*Runner, error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

Run scene case

func (*Runner) SetAddr

func (r *Runner) SetAddr(addr string)

func (*Runner) SetInflux

func (r *Runner) SetInflux(client *tool.InfluxdbClient)

func (*Runner) Stat

func (r *Runner) Stat(ctx context.Context)

func (*Runner) StatInfo

func (r *Runner) StatInfo() *RequestStat

type TestResult

type TestResult struct {
	Name       string
	StatusCode int
	Result     bool
	Response   string
	Elapsed    int64
	Exception  string
	EndTime    time.Time
}

func Failed

func Failed(name string, elapsed int64, status int, response string, now time.Time, err error) *TestResult

func Success

func Success(name string, elapsed int64, status int, response string, now time.Time) *TestResult

Directories

Path Synopsis
Package scene include test file(yaml) and how to parse yaml
Package scene include test file(yaml) and how to parse yaml

Jump to

Keyboard shortcuts

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