public class XMLSaxToJUnitXMLHandler extends XMLSaxToJUnitHandler
<?xml version='1.0' encoding='utf-8'?> <testsuites name="a.testcycle.Cycle.runTest" timestamp="06-19-2018 10:44:44" time="16"> <testsuite name="a.testsuite.Suite.runTest" tests="5" errors="1" failures="2" skipped="1" timestamp="06-19-2018 10:44:44" time="16" > <testcase name="case1" classname="a.testcase.Cases1" time="0"> </testcase> <testcase name="case2" classname="a.testcase.Cases1" time="0"> <skipped message="This test case will be skipped for some reason" details="a.testcase.Cases1.case2" /> </testcase> <testcase name="case3" classname="a.testcase.Cases1" time="0"> <failure message="benchFile.txt doesn't match actualFile.txt." details="detailed failure message." type="DIFF" line="59"/> </testcase> <testcase name="case4" classname="a.testcase.Cases1" time="16"> <failure message="IsComponentExists failed." details="FANTACY_GUI doesn't exist!" type="NON_EXIST" line="72"/> <failure message="WaitForGUI failed." details="FANTACY_GUI doesn't exist!" type="TIMEOUT" line="76"/> </testcase> <testcase name="case5" classname="a.testcase.Cases1" time="0"> <failed message="null" type="NullPointerException" line="88"/> </testcase> </testsuite> </testsuites>
orderable, statusReport, tagStack, testLevelList, value
Constructor and Description |
---|
XMLSaxToJUnitXMLHandler() |
XMLSaxToJUnitXMLHandler(java.lang.String counterUnit) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getResult()
Convert the JUnit result to XML string.
|
characters, endElement, startDocument, startElement
public XMLSaxToJUnitXMLHandler()
public XMLSaxToJUnitXMLHandler(java.lang.String counterUnit)
counterUnit
- String, the counter unit. It can be one of Constants.VALID_COUTNER_UNITS
.public java.lang.String getResult()
getResult
in class XMLSaxAbstractHandler
Copyright © SAS Institute. All Rights Reserved.