{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

OrchestrationListenerManager

class OrchestrationListenerManager


Container class for all orchestration listeners

Summary

Nested types

OrchestrationListenerManager.TestEvent

Message types sent from the remote instrumentation

Constants

const String!

Public constructors

OrchestrationListenerManager(instrumentation: Instrumentation!)

Public functions

Unit
Unit
handleNotification(bundle: Bundle!)

Takes a test message and parses it out for all the listeners.

Unit

To be called after test collection, before the first test begins.

Unit

To be called when the test process terminates, with the result from standard out.

Unit

To be called when the test process begins

Constants

KEY_TEST_EVENT

const val KEY_TEST_EVENTString!

Public constructors

OrchestrationListenerManager

OrchestrationListenerManager(instrumentation: Instrumentation!)

Public functions

addListener

fun addListener(listener: OrchestrationRunListener!): Unit

handleNotification

fun handleNotification(bundle: Bundle!): Unit

Takes a test message and parses it out for all the listeners.

Parameters
bundle: Bundle!

A bundle containing a key describing the type of message, and a bundle with the appropriate parcelable imitation of aJ Unit object.

orchestrationRunStarted

fun orchestrationRunStarted(testCount: Int): Unit

To be called after test collection, before the first test begins.

testProcessFinished

fun testProcessFinished(outputFile: String!): Unit

To be called when the test process terminates, with the result from standard out.

testProcessStarted

fun testProcessStarted(description: ParcelableDescription!): Unit

To be called when the test process begins