ClusterCommandLauncher

public class ClusterCommandLauncher
extends Object implements IConfigurationReceiver, IInvocationContextReceiver, IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommandLauncher


A IRemoteTest class to launch a command from TFC via a subprocess TF. FIXME: this needs to be extended to support multi-device tests.

Summary

Constants

String ANDROID_SERIALS

String TEST_WORK_DIR

String TF_DEVICE_COUNT

String TF_JAR_DIR

String TF_PATH

Public constructors

ClusterCommandLauncher()

Public methods

void run(TestInformation testInfo, ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

void setInvocationContext(IInvocationContext invocationContext)

Constants

ANDROID_SERIALS

public static final String ANDROID_SERIALS

Constant Value: "ANDROID_SERIALS"

TEST_WORK_DIR

public static final String TEST_WORK_DIR

Constant Value: "TEST_WORK_DIR"

TF_DEVICE_COUNT

public static final String TF_DEVICE_COUNT

Constant Value: "TF_DEVICE_COUNT"

TF_JAR_DIR

public static final String TF_JAR_DIR

Constant Value: "TF_JAR_DIR"

TF_PATH

public static final String TF_PATH

Constant Value: "TF_PATH"

Public constructors

ClusterCommandLauncher

public ClusterCommandLauncher ()

Public methods

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
testInfo TestInformation: The TestInformation object containing useful information to run tests.

listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Parameters
invocationContext IInvocationContext