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 |