XmlDefsParser

class XmlDefsParser
extends AbstractXmlParser

java.lang.Object
   ↳ com.android.tradefed.util.xml.AbstractXmlParser
     ↳ com.android.tradefed.testtype.testdefs.XmlDefsParser


Parses a test_defs.xml file.

See development/testrunner/test_defs.xsd for expected format

Summary

Public methods

Collection<InstrumentationTestDef> getTestDefs()

Gets the list of parsed test definitions.

Protected methods

DefaultHandler createXmlHandler()

Creates a DefaultHandler to process the xml

Public methods

getTestDefs

Collection<InstrumentationTestDef> getTestDefs ()

Gets the list of parsed test definitions. The element order should be consistent with the order of elements in the parsed input.

Returns
Collection<InstrumentationTestDef>

Protected methods

createXmlHandler

DefaultHandler createXmlHandler ()

Creates a DefaultHandler to process the xml

Returns
DefaultHandler