FormattedGeneratorReporter

public abstract class FormattedGeneratorReporter
extends SuiteResultReporter

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


Reporter that allows to generate reports in a particular format. TODO: fix logged file

Summary

Public constructors

FormattedGeneratorReporter()

Public methods

abstract IFormatterGenerator createFormatter()

Returns a new instance of the IFormatterGenerator to use.

abstract void finalizeResults(IFormatterGenerator generator, SuiteResultHolder resultHolder)

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

final void invocationEnded(long elapsedTime)

Reports that the invocation has terminated, whether successfully or due to some error condition.

Public constructors

FormattedGeneratorReporter

public FormattedGeneratorReporter ()

Public methods

createFormatter

public abstract IFormatterGenerator createFormatter ()

Returns a new instance of the IFormatterGenerator to use.

Returns
IFormatterGenerator

finalizeResults

public abstract void finalizeResults (IFormatterGenerator generator, 
                SuiteResultHolder resultHolder)

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

invocationEnded

public final void invocationEnded (long elapsedTime)

Reports that the invocation has terminated, whether successfully or due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
elapsedTime long: the elapsed time of the invocation in ms