集群命令启动器

public class ClusterCommandLauncher
extends Object implements IRemoteTest , IInvocationContextReceiver , IConfigurationReceiver

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


一个IRemoteTest类,用于通过子进程 TF 从 TFC 启动命令。 FIXME:这需要扩展以支持多设备测试。

概括

领域

public static final String ANDROID_SERIALS

public static final String TEST_WORK_DIR

public static final String TF_DEVICE_COUNT

public static final String TF_JAR_DIR

public static final String TF_PATH

公共构造函数

ClusterCommandLauncher ()

公共方法

void run ( TestInformation testInfo, ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

void setConfiguration ( IConfiguration configuration)

注入正在使用的IConfiguration

void setInvocationContext ( IInvocationContext invocationContext)

领域

ANDROID_SERIALS

public static final String ANDROID_SERIALS

测试工作目录

public static final String TEST_WORK_DIR

TF_DEVICE_COUNT

public static final String TF_DEVICE_COUNT

TF_JAR_DIR

public static final String TF_JAR_DIR

TF_路径

public static final String TF_PATH

公共构造函数

集群命令启动器

public ClusterCommandLauncher ()

公共方法

跑步

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

参数
testInfo TestInformationTestInformation对象包含运行测试的有用信息。

listener ITestInvocationListener :测试结果的ITestInvocationListener

投掷
DeviceNotAvailableException

设置配置

public void setConfiguration (IConfiguration configuration)

注入正在使用的IConfiguration

参数
configuration IConfiguration

设置调用上下文

public void setInvocationContext (IInvocationContext invocationContext)

参数
invocationContext IInvocationContext