ClusterCommandLauncher
public
class
ClusterCommandLauncher
extends Object
implements
IConfigurationReceiver,
IInvocationContextReceiver,
IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandLauncher |
用于通过子进程 TF 从 TFC 启动命令的 IRemoteTest
类。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
TEST_WORK_DIR
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 |
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的 IConfiguration
。
参数 | |
---|---|
configuration |
IConfiguration |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
参数 | |
---|---|
invocationContext |
IInvocationContext |