testflow

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Overview

Package testflow test flow, Add=>HandleDepend=>Send=>Check

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlowConfig

func InitFlowConfig(conf string, log string)

InitFlowConfig 初始化配置

func StartAutoTest

func StartAutoTest() bool

StartAutoTest 自动测试

Types

type AutoTestResult

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

AutoTestResult 自动测试结果

type TestCaseConfig

type TestCaseConfig struct {
	CliCommand      string         `toml:"cliCmd"`
	CheckTimeout    int            `toml:"checkTimeout"`
	TestCaseFileArr []TestCaseFile `toml:"TestCaseFile"`
}

TestCaseConfig 测试用例配置

type TestCaseFile

type TestCaseFile struct {
	Dapp     string `toml:"dapp"`
	Filename string `toml:"filename"`
}

TestCaseFile 测试用例文件

type TestOperator

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

TestOperator 测试操作符

func NewTestOperator

func NewTestOperator(stdLog log15.Logger, fileLog log15.Logger, dapp string) (tester *TestOperator)

NewTestOperator new

func (*TestOperator) AddCaseArray

func (tester *TestOperator) AddCaseArray(caseArrayList ...interface{})

AddCaseArray 添加用例

func (*TestOperator) HandleDependency

func (tester *TestOperator) HandleDependency()

HandleDependency 管理依赖

func (*TestOperator) RunCheckFlow

func (tester *TestOperator) RunCheckFlow()

RunCheckFlow check

func (*TestOperator) RunSendFlow

func (tester *TestOperator) RunSendFlow()

RunSendFlow send

func (*TestOperator) WaitTest

func (tester *TestOperator) WaitTest() *AutoTestResult

WaitTest 等待测试

type TestRunner

type TestRunner interface {
	RunTest(tomlFile string, wg *sync.WaitGroup)
}

TestRunner 测试接口

Jump to

Keyboard shortcuts

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