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

OrchestrationListenerManager

public final class OrchestrationListenerManager


Container class for all orchestration listeners

Summary

Nested types

OrchestrationListenerManager.TestEvent

Message types sent from the remote instrumentation

Constants

static final @NonNull String

Public constructors

OrchestrationListenerManager(@NonNull Instrumentation instrumentation)

Public methods

@NonNull void
@NonNull void
handleNotification(@NonNull Bundle bundle)

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

@NonNull void

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

@NonNull void

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

@NonNull void

To be called when the test process begins

Constants

KEY_TEST_EVENT

@NonNull
public static final @NonNull String KEY_TEST_EVENT

Public constructors

OrchestrationListenerManager

public OrchestrationListenerManager(@NonNull Instrumentation instrumentation)

Public methods

addListener

@NonNull
public void addListener(@NonNull OrchestrationRunListener listener)

handleNotification

@NonNull
public void handleNotification(@NonNull Bundle bundle)

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

Parameters
@NonNull 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

@NonNull
public void orchestrationRunStarted(@NonNull int testCount)

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

testProcessFinished

@NonNull
public void testProcessFinished(@NonNull String outputFile)

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

testProcessStarted

@NonNull
public void testProcessStarted(@NonNull ParcelableDescription description)

To be called when the test process begins