可执行主机测试

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