command

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorIDduplicate        = errors.New("testcase's ID duplicate")
	ErrorDependencyNotExist = errors.New("dependency does not exist")
	ErrorIDRestrict         = errors.New("the ID of the dependent testcase must be smaller than the ID of the current testcase")
)

Functions

func AllCheck added in v0.0.3

func AllCheck() error

func ExtractXpath added in v0.0.2

func ExtractXpath(ctx context.Context, cmd *cli.Command) error

func HttpAutomateTest

func HttpAutomateTest(httpTestCases map[string][]*config.TestCase)

func RunTestCases

func RunTestCases(ctx context.Context, cmd *cli.Command) error

func ValidateConfig

func ValidateConfig(ctx context.Context, cmd *cli.Command) error

Types

type HttpTestCallable

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

func (*HttpTestCallable) Call

type HttpTestCaseResult

type HttpTestCaseResult struct {
	State  model.State
	ID     uint64
	Reason model.Reason
	// actual request
	Request   config.Request
	TestCase  *config.TestCase
	KeyValues map[string]any
}

type ResultInfo

type ResultInfo struct {
	Total        int
	SuccessCount int
	FailedCount  int
}

func HandleSingleFile

func HandleSingleFile(workerNum int, filePath string) *ResultInfo

Jump to

Keyboard shortcuts

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