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)

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

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)

Parameters
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parameters
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parameters
cause Throwable

setConfiguration

public final void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration