| java.lang.Object | ||
| ↳ | android.support.test.orchestrator.listeners.OrchestrationRunListener | |
| ↳ | android.support.test.orchestrator.listeners.OrchestrationResultPrinter | |
A line by line reimplementation of ERROR(/android.support.test.internal.runner.listener.InstrumentationResultPrinter)
AndroidTestOrchestrator needs to mirror the output
of a non-orchestrated AndroidJUnitRunner multi-test run, and thus requires a result printer.
InstrumentationResultPrinter cannot be reused because it extends from the JUnit RunListener,
which passes in JUnit specific objects which AndroidTestOrchestrator cannot access.
TODO(b/35394729): Refactor expertise from this and InstrumentationResultPrinter to one place.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | REPORT_KEY_NAME_CLASS | If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the name of the current test class. | |||||||||
| String | REPORT_KEY_NAME_TEST | If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the name of the current test. | |||||||||
| String | REPORT_KEY_NUM_CURRENT | If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the sequence number of the current test. | |||||||||
| String | REPORT_KEY_NUM_TOTAL | If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the total number of tests that are being run. | |||||||||
| String | REPORT_KEY_STACK | If included in the status bundle sent to an IInstrumentationWatcher, this key identifies a stack trace describing an error or failure. | |||||||||
| String | REPORT_VALUE_ID | This value, if stored with key REPORT_KEY_IDENTIFIER,
identifies AndroidJUnitRunner as the source of the report. |
|||||||||
| int | REPORT_VALUE_RESULT_ASSUMPTION_FAILURE | The test completed with an assumption failure. | |||||||||
| int | REPORT_VALUE_RESULT_ERROR | This constant is deprecated. not supported in JUnit4, use REPORT_VALUE_RESULT_FAILURE instead | |||||||||
| int | REPORT_VALUE_RESULT_FAILURE | The test completed with a failure. | |||||||||
| int | REPORT_VALUE_RESULT_IGNORED | The test was ignored. | |||||||||
| int | REPORT_VALUE_RESULT_OK | The test completed successfully. | |||||||||
| int | REPORT_VALUE_RESULT_START | The test is starting. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Produce a more meaningful crash report including stack trace and report it back to
Instrumentation results.
| |||||||||||
Convenience method for
ERROR(/#getInstrumentation()#sendStatus()) | |||||||||||
send a status for the start of a each test, so long tests can be seen as "running"
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the name of the current test class. This is sent with any status message describing a specific test being started or completed.
If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the name of the current test. This is sent with any status message describing a specific test being started or completed.
If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the sequence number of the current test. This is sent with any status message describing a specific test being started or completed.
If included in the status or final bundle sent to an IInstrumentationWatcher, this key identifies the total number of tests that are being run. This is sent with all status messages.
If included in the status bundle sent to an IInstrumentationWatcher, this key identifies a stack trace describing an error or failure. This is sent with any status message describing a specific test being completed.
This value, if stored with key REPORT_KEY_IDENTIFIER,
identifies AndroidJUnitRunner as the source of the report. This is sent with all status
messages.
The test completed with an assumption failure.
This constant is deprecated.
not supported in JUnit4, use REPORT_VALUE_RESULT_FAILURE instead
The test completed with an error.
The test completed with a failure.
The test was ignored.
The test completed successfully.
The test is starting.
| Parameters | |
|---|---|
streamResult |
PrintStream |
orchestrationResults |
OrchestrationResult |
| Parameters | |
|---|---|
testCount |
int |
Produce a more meaningful crash report including stack trace and report it back to Instrumentation results.
| Parameters | |
|---|---|
t |
Throwable |
Convenience method for ERROR(/#getInstrumentation()#sendStatus())
| Parameters | |
|---|---|
code |
int |
bundle |
Bundle |
| Parameters | |
|---|---|
failure |
ParcelableFailure |
| Parameters | |
|---|---|
failure |
ParcelableFailure |
| Parameters | |
|---|---|
description |
ParcelableDescription |
| Parameters | |
|---|---|
description |
ParcelableDescription |
send a status for the start of a each test, so long tests can be seen as "running"
| Parameters | |
|---|---|
description |
ParcelableDescription |