AndroidBuildResultReporter

public class AndroidBuildResultReporter
extends CollectingTestListener implements ITestSummaryListener

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.google.android.tradefed.result.AndroidBuildResultReporter


Reports test results to Android Build API.

Summary

Constants

String STATUS_ERROR

String STATUS_FAIL

String STATUS_IN_PROGRESS

String STATUS_PASS

Public constructors

AndroidBuildResultReporter()

Public methods

void invocationEnded(long elapsedTime)

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

void invocationFailed(Throwable cause)

Reports an incomplete invocation due to some error condition.

void invocationStarted(IInvocationContext context)

Reports the start of the test invocation.

void putSummary(List<TestSummary> summaries)

Passes a List of non-null TestSummarys which may have been returned from any ITestInvocationListeners instantiated as part of the configuration.

Constants

STATUS_ERROR

public static final String STATUS_ERROR

Constant Value: "error"

STATUS_FAIL

public static final String STATUS_FAIL

Constant Value: "completeFail"

STATUS_IN_PROGRESS

public static final String STATUS_IN_PROGRESS

Constant Value: "inProgress"

STATUS_PASS

public static final String STATUS_PASS

Constant Value: "completePass"

Public constructors

AndroidBuildResultReporter

public AndroidBuildResultReporter ()

Public methods

invocationEnded

public 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 (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

invocationStarted

public void invocationStarted (IInvocationContext context)

Reports the start of the test invocation.

Will be automatically called by the TradeFederation framework. Reporters need to override this method to support multiple devices reporting.

Parameters
context IInvocationContext: information about the invocation

putSummary

public void putSummary (List<TestSummary> summaries)

Passes a List of non-null TestSummarys which may have been returned from any ITestInvocationListeners instantiated as part of the configuration.

Parameters
summaries List: A List of non-null TestSummarys from ITestInvocationListeners that are part of the current configuration.