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