testng

package
v0.0.0-...-7c2491a Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Name        string       `xml:"name,attr"`
	TestMethods []TestMethod `xml:"test-method"`
}

type Group

type Group struct {
	XMLName xml.Name `xml:"group"`
	Name    string   `xml:"name,attr"`
	Methods []Method `xml:"method"`
}

type Method

type Method struct {
	Signature string `xml:"signature,attr"`
	Name      string `xml:"name,attr"`
	Class     string `xml:"class,attr"`
}

type Report

type Report struct {
	XMLName        xml.Name `xml:"testng-results"`
	Skipped        int      `xml:"skipped,attr"`
	Failed         int      `xml:"failed,attr"`
	Ignored        int      `xml:"ignored,attr"`
	Total          int      `xml:"total,attr"`
	Passed         int      `xml:"passed,attr"`
	ReporterOutput string   `xml:"reporter-output"`
	Suite          Suite    `xml:"suite"`
}

func (*Report) CountTest

func (r *Report) CountTest(result json.TestAction)

type Suite

type Suite struct {
	Name          string  `xml:"name,attr"`
	DurationMills int     `xml:"duration-ms,attr"`
	StartedAt     string  `xml:"started-at,attr"`
	FinishedAt    string  `xml:"finished-at,attr"`
	Groups        []Group `xml:"groups"`
	Test          Test    `xml:"test"`
}

func (*Suite) AddGroups

func (s *Suite) AddGroups(groups *properties.Properties, method TestMethod)

func (*Suite) AddTest

func (s *Suite) AddTest(testMethod TestMethod)

type Test

type Test struct {
	Name          string  `xml:"name,attr"`
	DurationMills int     `xml:"duration-ms,attr"`
	StartedAt     string  `xml:"started-at,attr"`
	FinishedAt    string  `xml:"finished-at,attr"`
	Classes       []Class `xml:"class"`
}

type TestMethod

type TestMethod struct {
	Status         string `xml:"status,attr"`
	Signature      string `xml:"signature,attr"`
	Name           string `xml:"name,attr"`
	DurationMills  int    `xml:"duration-ms,attr"`
	StartedAt      string `xml:"started-at,attr"`
	FinishedAt     string `xml:"finished-at,attr"`
	ReporterOutput string `xml:"reporter-output"`
	Class          string `xml:"-"`
}

Jump to

Keyboard shortcuts

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