XmlFormattedGeneratorReporter

public class XmlFormattedGeneratorReporter
extends FormattedGeneratorReporter

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.suite.SuiteResultReporter
       ↳ com.android.tradefed.result.suite.FormattedGeneratorReporter
         ↳ com.android.tradefed.result.suite.XmlFormattedGeneratorReporter


Implementation of the FormattedGeneratorReporter which format the suite results in an xml format.

Summary

Public constructors

XmlFormattedGeneratorReporter()

Public methods

IFormatterGenerator createFormatter()

Create the IFormatterGenerator to be used.

File createResultDir()

Returns the result directory that should be used to store results.

final void finalizeResults(IFormatterGenerator generator, SuiteResultHolder resultHolder)

Step that handles using the IFormatterGenerator and the SuiteResultHolder in order to generate some formatted results.

void postFormattingStep(File resultDir, File reportFile)

Post formatting step that allows to take action after the report is generated.

void preFormattingSetup(IFormatterGenerator formater)

Pre formatting step that allows to take action before the report is generated.

Public constructors

XmlFormattedGeneratorReporter

public XmlFormattedGeneratorReporter ()

Public methods

createFormatter

public IFormatterGenerator createFormatter ()

Create the IFormatterGenerator to be used. Can be overriden to change the format.

Returns
IFormatterGenerator

createResultDir

public File createResultDir ()

Returns the result directory that should be used to store results.

Returns
File

finalizeResults

public final void finalizeResults (IFormatterGenerator generator, 
                SuiteResultHolder resultHolder)

Step that handles using the IFormatterGenerator and the SuiteResultHolder in order to generate some formatted results.

postFormattingStep

public void postFormattingStep (File resultDir, 
                File reportFile)

Post formatting step that allows to take action after the report is generated.

Parameters
resultDir File: The directory containing the results.

reportFile File: The generated report file.

preFormattingSetup

public void preFormattingSetup (IFormatterGenerator formater)

Pre formatting step that allows to take action before the report is generated.

Parameters
formater IFormatterGenerator: The IFormatterGenerator that will be used for the generation.