keyword

package
v0.71.8-6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullfillBlock

func FullfillBlock(gKeyWord *GKeyWord, startLine int, endLine int, lines []string)

func GetBasicTcsInfo

func GetBasicTcsInfo(kwSlice []*GKeyWord) []*testcase.TestCaseDataInfo

func GetBlockType

func GetBlockType(headerLine string) string

func GetTsNameFileMap

func GetTsNameFileMap(kwSlice []*GKeyWord) map[string]string

func InitFullKwTcSlice

func InitFullKwTcSlice(kwfilePathSlice []string) ([]*testcase.TestCaseDataInfo, []string)

func LookupKwTestCase

func LookupKwTestCase(ktc *KWTestCase, fullBasicTcSlice []*testcase.TestCaseDataInfo) []*testcase.TestCaseDataInfo

func ResetTcNameAndParentTcName

func ResetTcNameAndParentTcName(kwId string, fullKwTcSlice []*testcase.TestCaseDataInfo)

func SetKwTestSuiteInfo

func SetKwTestSuiteInfo(ktc *KWTestCase, tsNameFileMap map[string]string) bool

Types

type GKeyWord

type GKeyWord struct {
	Settings  *Settings
	TestCases *TestCases
	// Keywords  Keywords
	Variables *Variables
}

currently, supports TestCases, Settings, Keywords, Variables

func ConstructKwInfosWithoutDt

func ConstructKwInfosWithoutDt(kwFile string) GKeyWord

func InitGKeyWord

func InitGKeyWord(lines []string) GKeyWord

func InitKeyWordSlice

func InitKeyWordSlice(filePathSlice []string) []*GKeyWord

func (*GKeyWord) ParseSettingsOriginalContent

func (gKw *GKeyWord) ParseSettingsOriginalContent()

func (*GKeyWord) ParseTestCasesOriginalContent

func (gKw *GKeyWord) ParseTestCasesOriginalContent()

func (*GKeyWord) ParseVariablesOriginalContent

func (gKw *GKeyWord) ParseVariablesOriginalContent()

func (*GKeyWord) PopulateSettingsOriginalContent

func (gKw *GKeyWord) PopulateSettingsOriginalContent(startLine int, endLine int, lines []string)

func (*GKeyWord) PopulateTestCasesOriginalContent

func (gKw *GKeyWord) PopulateTestCasesOriginalContent(startLine int, endLine int, lines []string)

func (*GKeyWord) PopulateVariablesOriginalContent

func (gKw *GKeyWord) PopulateVariablesOriginalContent(startLine int, endLine int, lines []string)

type GKeyWords

type GKeyWords []*GKeyWord

type KWTcConsoleResults

type KWTcConsoleResults struct {
	KWName             string
	StartTime          string
	EndTime            string
	StartTimeUnixNano  int64
	EndTimeUnixNano    int64
	DurationUnixNano   int64
	DurationUnixMillis int64
	TestResult         string // Success, Fail
}

type KWTcReportResults

type KWTcReportResults struct {
	KWName             string
	StartTime          string
	EndTime            string
	StartTimeUnixNano  int64
	EndTimeUnixNano    int64
	DurationUnixNano   int64
	DurationUnixMillis int64
	TestResult         string // Success, Fail
}

for report format

type KWTestCase

type KWTestCase struct {
	OriginalLine           int
	OriginalTestCase       string
	KWTestCaseName         string
	ParsedTestCase         []string                   // format: ["tsName / tcNmae", "arg1 / v", "arg2 / v", ...]
	MappingToTestSuiteId   string                     //
	MappingToTestSuiteFile string                     //
	MappingToBasicTestCase *testcase.TestCaseDataInfo //
}

type Settings

type Settings struct {
	StartLine          int
	EndLine            int
	OriginalContent    []string
	ID                 string
	TestSuitePaths     []string // paths
	BasicTestCasePaths []string // paths
	JsFuncPaths        []string // paths
}

type TestCases

type TestCases struct {
	StartLine       int
	EndLine         int
	OriginalContent []string
	ParsedTestCases []*KWTestCase
}

type Variables

type Variables struct {
	StartLine       int
	EndLine         int
	OriginalContent []string
	ParsedContent   interface{}
}

Jump to

Keyboard shortcuts

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