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.
สรุป
ค่าคงที่ | |
|---|---|
String |
STATUS_ERROR
|
String |
STATUS_FAIL
|
String |
STATUS_IN_PROGRESS
|
String |
STATUS_PASS
|
เครื่องมือสร้างสาธารณะ | |
|---|---|
AndroidBuildResultReporter()
|
|
เมธอดสาธารณะ | |
|---|---|
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 |
ค่าคงที่
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"
เครื่องมือสร้างสาธารณะ
AndroidBuildResultReporter
public AndroidBuildResultReporter ()
เมธอดสาธารณะ
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.
| พารามิเตอร์ | |
|---|---|
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.
| พารามิเตอร์ | |
|---|---|
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.
| พารามิเตอร์ | |
|---|---|
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.
| พารามิเตอร์ | |
|---|---|
summaries |
List: A List of non-null TestSummarys from ITestInvocationListeners that are part of the current configuration. |