ClusterCommandLauncher

public class ClusterCommandLauncher
extends Object implements IConfigurationReceiver, IInvocationContextReceiver, IRemoteTest

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


IRemoteTest 類別,可透過子程序 TF 從 TFC 啟動指令。FIXME:這項功能需要擴充,才能支援多裝置測試。

摘要

常數

String ANDROID_SERIALS

String TEST_WORK_DIR

String TF_DEVICE_COUNT

String TF_JAR_DIR

String TF_PATH

公用建構函式

ClusterCommandLauncher()

公用方法

void run(TestInformation testInfo, ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setConfiguration(IConfiguration configuration)

注入使用的 IConfiguration

void setInvocationContext(IInvocationContext invocationContext)

常數

ANDROID_SERIALS

public static final String ANDROID_SERIALS

常數值: "ANDROID_SERIALS"

TEST_WORK_DIR

public static final String TEST_WORK_DIR

常數值: "TEST_WORK_DIR"

TF_DEVICE_COUNT

public static final String TF_DEVICE_COUNT

常數值: "TF_DEVICE_COUNT"

TF_JAR_DIR

public static final String TF_JAR_DIR

常數值: "TF_JAR_DIR"

TF_PATH

public static final String TF_PATH

常數值: "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