FormattedGeneratorReporter

public abstract class FormattedGeneratorReporter
extends SuiteResultReporter implements IConfigurationReceiver

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 IConfiguration getConfiguration()
final void invocationEnded(long elapsedTime)

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

void invocationFailed(FailureDescription failure)
void invocationFailed(Throwable cause)

Reports an incomplete invocation due to some error condition.

final void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

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.

getConfiguration

public final IConfiguration getConfiguration ()

Returns
IConfiguration

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

invocationFailed

public void invocationFailed (FailureDescription failure)

Parameters
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Reports an incomplete invocation due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
cause Throwable: the Throwable cause of the failure

setConfiguration

public final void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration