叢集命令啟動器

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