ExecutableHostTest

public class ExecutableHostTest
extends ExecutableBaseTest

java.lang.Object
   ↳ com.android.tradefed.testtype.binary.ExecutableBaseTest
     ↳ com.android.tradefed.testtype.binary.ExecutableHostTest


測試執行工具,用於在主機上執行可執行檔。由於主機二進位檔可能會與裝置通訊,因此執行器會實作 IDeviceTest。如果收到的裝置不是 StubDevice,序號會傳遞至二進位檔供使用。

摘要

公用建構函式

ExecutableHostTest()

公用方法

String findBinary(String binary)

搜尋二進位檔,以便運作執行。

void runBinary(String binaryPath, ITestInvocationListener listener, TestDescription description)

在指定路徑實際執行二進位檔。

公用建構函式

ExecutableHostTest

public ExecutableHostTest ()

公用方法

findBinary

public String findBinary (String binary)

搜尋二進位檔,以便運作執行。

參數
binary String:二進位檔的路徑或二進位檔名稱。

傳回
String 二進位檔的路徑,如果找不到則為 null。

runBinary

public void runBinary (String binaryPath, 
                ITestInvocationListener listener, 
                TestDescription description)

實際執行指定路徑的二進位檔。

參數
binaryPath String:二進位檔的路徑。

listener ITestInvocationListener:要回報結果的接聽程式。

description TestDescription:正在進行的測試。

擲回
DeviceNotAvailableException
IOException