Documentation ¶
Index ¶
- Variables
- type Bug
- type CheckPointLog
- type Config
- type CppUnitSuites
- type CppUnitTest
- type CypressFailure
- type CypressTestcase
- type CypressTestsuite
- type CypressTestsuites
- type Failure
- type FlagSlice
- type FuncResult
- type GTestSuites
- type JestSuites
- type Module
- type Option
- type PhpUnitSuites
- type Product
- type Properties
- type Property
- type PyTestSuites
- type QTestSuites
- type RobotResult
- type RobotStatistics
- type RobotStatus
- type RobotSuite
- type RobotTest
- type StepLog
- type TestCase
- type TestCaseInModule
- type TestCaseInSuite
- type TestCaseInTask
- type TestCaseNoStepArr
- type TestCaseWrapper
- type TestReport
- type TestStep
- type TestSuite
- type TestTask
- type UnitResult
- type UnitTestSuite
- type ZentaoBugFields
- type ZentaoResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var CypressResults = "results"
cypress
View Source
var RFResults = "results"
RobotFramework xml
Functions ¶
This section is empty.
Types ¶
type Bug ¶
type Bug struct { Title string `json:"title"` Module string `json:"module"` Type string `json:"type"` OpenedBuild map[string]string `json:"openedBuild"` Severity string `json:"severity"` Pri string `json:"pri"` Product string `json:"product"` Case string `json:"case"` Steps string `json:"steps"` Uid string `json:"uid"` CaseVersion string `json:"caseVersion"` OldTaskID string `json:"oldTaskID"` }
type CheckPointLog ¶
type CppUnitSuites ¶
type CppUnitSuites struct { XMLName xml.Name `xml:"TestRun"` SuccessfulTests struct { TestCases []CppUnitTest `json:"test" xml:"Tests"` } `json:"successfulTests" xml:"SuccessfulTests"` FailedTests struct { TestCases []CppUnitTest `json:"test" xml:"FailedTest"` } `json:"failedTests" xml:"FailedTests"` Duration int }
cppunit xml
type CppUnitTest ¶
type CppUnitTest struct { Id int `json:"id" xml:"Id,attr"` Title string `json:"name" xml:"Name"` FailureType string `json:"failureType" xml:"FailureType"` Message string `json:"message" xml:"Message"` Location []struct { File string `json:"file" xml:"File"` Line string `json:"line" xml:"Line"` } `json:"location" xml:"Location"` Duration int }
type CypressFailure ¶
type CypressTestcase ¶
type CypressTestcase struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Time float64 `xml:"time,attr"` Classname string `xml:"classname,attr"` Failures []CypressFailure `xml:"failure"` }
type CypressTestsuite ¶
type CypressTestsuite struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Timestamp string `xml:"timestamp,attr"` Tests string `xml:"tests,attr"` File string `xml:"file,attr"` Time float64 `xml:"time,attr"` Failures string `xml:"failures,attr"` Testcases []CypressTestcase `xml:"testcase"` }
type CypressTestsuites ¶
type FuncResult ¶
type GTestSuites ¶
type GTestSuites struct { XMLName xml.Name `xml:"testsuites"` TestSuites []struct { Title string `xml:"name,attr"` TestCases []struct { Title string `xml:"name,attr"` TestSuite string `xml:"classname,attr"` Duration float32 `xml:"time,attr"` Failure *struct { Type string `xml:"message,attr"` Desc string `xml:",innerxml"` } `xml:"failure,omitempty"` Status string `xml:"status,attr"` } `xml:"testcase"` Duration int } `xml:"testsuite"` Duration int Time float32 `xml:"time,attr"` }
gtest xml
type JestSuites ¶
type JestSuites struct { XMLName xml.Name `xml:"testsuites"` Title string `xml:"name,attr"` TestSuites []struct { Title string `xml:"name,attr"` TestCases []UnitResult `xml:"testcase"` Duration int } `xml:"testsuite"` Duration int Time float32 `xml:"time,attr"` }
jest xml
type PhpUnitSuites ¶
type PhpUnitSuites struct { XMLName xml.Name `xml:"tests"` TestCases []struct { Title string `xml:"prettifiedMethodName,attr"` TestSuite string `xml:"prettifiedClassName,attr"` Fail string `xml:"exceptionMessage,attr"` Groups string `xml:"groups,attr"` Status int `xml:"status,attr"` Time float32 `xml:"time,attr"` } `xml:"test"` Duration int }
phpunit xml
type Product ¶
type Product struct { Id string Code string Name string Cases map[int]TestCaseInModule }
type Properties ¶
type Properties struct {
Property []Property `json:"property" xml:"property"`
}
type PyTestSuites ¶
type PyTestSuites struct { XMLName xml.Name `xml:"testsuites"` TestSuites []struct { Title string `xml:"name,attr"` TestCases []struct { Title string `xml:"name,attr"` TestSuite string `xml:"classname,attr"` Duration float32 `xml:"time,attr"` Failure *struct { Type string `xml:"message,attr"` Desc string `xml:",innerxml"` } `xml:"failure,omitempty"` Error *struct { Text string `xml:",chardata"` Message string `xml:"message,attr"` } `xml:"error"` Status string } `xml:"testcase"` Duration int Time float32 `xml:"time,attr"` } `xml:"testsuite"` Duration int }
pytest xml
type QTestSuites ¶
type QTestSuites struct { XMLName xml.Name `xml:"testsuite"` Name string `json:"name" xml:"name,attr"` TestCases []struct { Title string `json:"name" xml:"name,attr"` Result string `json:"result" xml:"result,attr"` Failure *struct { Type string `json:"type" xml:"tag,attr"` Desc string `json:"desc" xml:"message,attr"` } `json:"failure" xml:"failure"` } `json:"testCases" xml:"testcase"` Properties Properties `json:"properties" xml:"properties"` Duration int }
qtest xml
type RobotResult ¶
type RobotResult struct { XMLName xml.Name `xml:"robot"` Text string `xml:",chardata"` Generator string `xml:"generator,attr"` Generated string `xml:"generated,attr"` Rpa string `xml:"rpa,attr"` Suites []RobotSuite `xml:"suite"` Statistics RobotStatistics `xml:"statistics"` Errors string `xml:"errors"` }
type RobotStatistics ¶
type RobotStatistics struct { Text string `xml:",chardata"` Total struct { Text string `xml:",chardata"` Stat []struct { Text string `xml:",chardata"` Pass string `xml:"pass,attr"` Fail string `xml:"fail,attr"` } `xml:"stat"` } `xml:"total"` Tag string `xml:"tag"` Suite struct { Text string `xml:",chardata"` States []struct { Text string `xml:",chardata"` Pass string `xml:"pass,attr"` Fail string `xml:"fail,attr"` ID string `xml:"id,attr"` Name string `xml:"name,attr"` } `xml:"stat"` } `xml:"suite"` }
type RobotStatus ¶
type RobotSuite ¶
type RobotSuite struct { Text string `xml:",chardata"` ID string `xml:"id,attr"` Name string `xml:"name,attr"` Source string `xml:"source,attr"` Suites []RobotSuite `xml:"suite"` Tests []RobotTest `xml:"test"` Status RobotStatus `xml:"status"` }
type RobotTest ¶
type RobotTest struct { Text string `xml:",chardata"` ID string `xml:"id,attr"` Name string `xml:"name,attr"` Kw []struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Library string `xml:"library,attr"` Doc string `xml:"doc"` Arguments struct { Text string `xml:",chardata"` Arg []string `xml:"arg"` } `xml:"arguments"` Msg struct { Text string `xml:",chardata"` Timestamp string `xml:"timestamp,attr"` Level string `xml:"level,attr"` } `xml:"msg"` Status RobotStatus `xml:"status"` Assign struct { Text string `xml:",chardata"` Var string `xml:"var"` } `xml:"assign"` } `xml:"kw"` Doc string `xml:"doc"` Status RobotStatus `xml:"status"` }
type StepLog ¶
type StepLog struct { Id string `json:"id"` Name string `json:"name"` Status bool `json:"status"` CheckPoints []CheckPointLog `json:"checkPoints"` }
type TestCaseInModule ¶
type TestCaseInSuite ¶
type TestCaseInTask ¶
type TestCaseNoStepArr ¶
type TestCaseWrapper ¶
type TestReport ¶
type TestReport struct { Env string `json:"env"` TestType string `json:"testType"` TestFrame string `json:"testFrame"` ProductId int `json:"productId"` TaskId int `json:"taskId"` ZentaoData string `json:"zentaoData"` BuildUrl string `json:"buildUrl"` Pass int `json:"pass"` Fail int `json:"fail"` Skip int `json:"skip"` Total int `json:"total"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` Duration int64 `json:"duration"` FuncResult []FuncResult `json:"funcResult"` UnitResult []UnitResult `json:"unitResult"` }
type UnitResult ¶
type UnitResult struct { Title string `json:"title" xml:"name,attr"` TestSuite string `json:"testSuite" xml:"classname,attr"` StartTime int64 `json:"startTime" xml:"startTime"` EndTime int64 `json:"endTime" xml:"endTime"` Duration float32 `json:"duration" xml:"time,attr"` Failure *Failure `json:"failure" xml:"failure,omitempty"` ErrorType string `json:"errorType" xml:"type,attr,omitempty"` ErrorContent string `json:"errorContent" xml:"error,omitempty"` Id int `json:"id"` Status string `json:"status"` }
type UnitTestSuite ¶
type UnitTestSuite struct { XMLName xml.Name `xml:"testsuite"` Name string Duration int64 `xml:"-"` Time float32 `xml:"time,attr"` Properties Properties `xml:"properties"` TestCases []UnitResult `xml:"testcase"` }
单元测试
type ZentaoBugFields ¶
type ZentaoResponse ¶
Click to show internal directories.
Click to hide internal directories.