IMultiTargetPreparer

public interface IMultiTargetPreparer

com.android.tradefed.targetprep.multi.IMultiTargetPreparer
Known Indirect Subclasses


Prepares the test environment for several devices together. Only use for a setup that requires multiple devices, otherwise use the regular ITargetPreparer on each device.

Note that multiple IMultiTargetPreparers can be specified in a configuration. It is recommended that each IMultiTargetPreparer clearly document its expected environment pre-setup and post-setUp.

Summary

Public methods

abstract void setUp(IInvocationContext context)

Perform the targets setup for testing.

default void tearDown(IInvocationContext context, Throwable e)

Perform the targets cleanup/teardown after testing.

Public methods

setUp

void setUp (IInvocationContext context)

Perform the targets setup for testing.

Parameters
context IInvocationContext: the IInvocationContext describing the invocation, devices, builds.

Throws
TargetSetupError if fatal error occurred setting up environment
DeviceNotAvailableException if device became unresponsive
BuildError

tearDown

void tearDown (IInvocationContext context, 
                Throwable e)

Perform the targets cleanup/teardown after testing.

Parameters
context IInvocationContext: the IInvocationContext describing the invocation, devices, builds.

e Throwable: if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.

Throws
DeviceNotAvailableException if device became unresponsive