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