可執行主機測試
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) 實際上在給定路徑運行二進製文件。 |
公共構造函數
可執行主機測試
public ExecutableHostTest ()
公共方法
查找二進製文件
public String findBinary (String binary)
搜索二進製文件以運行它。
參數 | |
---|---|
binary | String :二進製文件的路徑或簡單的二進制名稱。 |
退貨 | |
---|---|
String | 二進製文件的路徑,如果未找到則為 null。 |
運行二進製文件
public void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)
實際上在給定路徑運行二進製文件。
參數 | |
---|---|
binaryPath | String :二進製文件的路徑。 |
listener | ITestInvocationListener :報告結果的偵聽器。 |
description | TestDescription :正在進行的測試。 |
投擲 | |
---|---|
DeviceNotAvailableException |