OrchestrationListenerManager


class OrchestrationListenerManager


Container class for all orchestration listeners

Summary

Nested types

Message types sent from the remote instrumentation

Constants

const String!
KEY_TEST_EVENT = "TestEvent"

Public constructors

Public functions

Unit
Unit

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_EVENT = "TestEvent": String!

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