GTestXmlResultParser

public class GTestXmlResultParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.GTestXmlResultParser


Parses the 'xml output mode' results of native tests using GTest that run from shell, and informs a ITestRunListener of the results.

Summary

Public constructors

GTestXmlResultParser(String testRunName, Collection<ITestRunListener> listeners)

Creates the GTestXmlResultParser.

GTestXmlResultParser(String testRunName, ITestRunListener listener)

Creates the GTestXmlResultParser for a single listener.

Public methods

void parseResult(File f, CollectingOutputReceiver output)

Parse the xml results

Public constructors

GTestXmlResultParser

GTestXmlResultParser (String testRunName, 
                Collection<ITestRunListener> listeners)

Creates the GTestXmlResultParser.

Parameters
testRunName String: the test run name to provide to testRunStarted(String, int)

listeners Collection: informed of test results as the tests are executing

GTestXmlResultParser

GTestXmlResultParser (String testRunName, 
                ITestRunListener listener)

Creates the GTestXmlResultParser for a single listener.

Parameters
testRunName String: the test run name to provide to testRunStarted(String, int)

listener ITestRunListener: informed of test results as the tests are executing

Public methods

parseResult

void parseResult (File f, 
                CollectingOutputReceiver output)

Parse the xml results

Parameters
f File: File containing the outputed xml

output CollectingOutputReceiver: The output collected from the execution run to complete the logs if necessary