可执行主机测试
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 |