Google is committed to advancing racial equity for Black communities. See how.

JUnitXmlParser

public class JUnitXmlParser
extends AbstractXmlParser

java.lang.Object
   ↳ com.android.tradefed.util.xml.AbstractXmlParser
     ↳ com.android.tradefed.util.JUnitXmlParser


Parser that extracts test result data from JUnit results stored in ant's XMLJUnitResultFormatter and forwards it to a ITestInvocationListener.

See also:

Summary

Public constructors

JUnitXmlParser(ITestInvocationListener listener)

Create a JUnitXmlParser

JUnitXmlParser(String runName, ITestInvocationListener listener)

Creates a JUnitXmlParser that notifies listener, passing runName to ITestInvocationListener#testRunStarted.

Protected methods

DefaultHandler createXmlHandler()

Creates a ERROR(/DefaultHandler) to process the xml

Public constructors

JUnitXmlParser

public JUnitXmlParser (ITestInvocationListener listener)

Create a JUnitXmlParser

Parameters
listener ITestInvocationListener: the ITestInvocationListener to forward results to

JUnitXmlParser

public JUnitXmlParser (String runName, 
                ITestInvocationListener listener)

Creates a JUnitXmlParser that notifies listener, passing runName to ITestInvocationListener#testRunStarted.

Parameters
runName String

listener ITestInvocationListener

Protected methods

createXmlHandler

protected DefaultHandler createXmlHandler ()

Creates a ERROR(/DefaultHandler) to process the xml

Returns
DefaultHandler