jsonToXml

package
v0.0.0-...-cfc8201 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTestOutput

func ParseTestOutput(jsonFilePath string, outPath string, testSuiteName string) error

Types

type AutomationTestJson

type AutomationTestJson struct {
	Succeeded     int     `json:"succeeded"`
	Failed        int     `json:"failed"`
	TotalDuration float64 `json:"totalDuration"`
	TimeStamp     string  `json:"reportCreatedOn"`
	Tests         []Test  `json:"tests"`
}

UE4 JSON Test Unit Structure

type FailureTag

type FailureTag struct {
	Message       string `xml:"message,attr"`
	Type          string `xml:"type,attr"`
	OutputMessage string `xml:",innerxml"`
}

type Test

type Test struct {
	TestDisplayName string      `json:"testDisplayName"`
	FullTestPath    string      `json:"fullTestPath"`
	Duration        float64     `json:"Duration"`
	Errors          int         `json:"errors"`
	Entries         []TestEntry `json:"entries,omitempty"`
}

type TestEntry

type TestEntry struct {
	Event TestEvent `json:"event"`
}

type TestEvent

type TestEvent struct {
	Type    string `json:"type"`
	Message string `json:"message"`
}

type TestFailed

type TestFailed struct {
	ClassName string     `xml:"classname,attr"`
	Name      string     `xml:"name,attr"`
	Time      float64    `xml:"time,attr"`
	Failure   FailureTag `xml:"failure,omitempty"`
}

type TestSuccess

type TestSuccess struct {
	ClassName string  `xml:"classname,attr"`
	Name      string  `xml:"name,attr"`
	Time      float64 `xml:"time,attr"`
}

Jump to

Keyboard shortcuts

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