ClusterCommandLauncher
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) 注入正在使用的 |
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_PATH
public static final String TF_PATH
公共构造函数
ClusterCommandLauncher
public ClusterCommandLauncher ()
公共方法
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给侦听器。
参数 | |
---|---|
testInfo | TestInformation :包含运行测试的有用信息的TestInformation 对象。 |
listener | ITestInvocationListener : 测试结果的ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |
设置配置
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
参数 | |
---|---|
configuration | IConfiguration |
设置调用上下文
public void setInvocationContext (IInvocationContext invocationContext)
参数 | |
---|---|
invocationContext | IInvocationContext |