NativeStressTest

public class NativeStressTest
extends Object implements IDeviceTest, IRemoteTest

java.lang.Object 中
   ↳ com.android.tradefed.testtype.NativeStressTest


用于在给定设备上运行原生压力测试可执行文件的测试。

它使用 NativeStressTestParser 来解析已完成的迭代次数并报告 将这些结果发送到 ITestInvocationListener

摘要

公共构造函数

NativeStressTest()

公共方法

ITestDevice getDevice()

获取被测设备。

String getModuleName()

获取要运行的 Android 原生测试模块。

void run(TestInformation testInfo, ITestInvocationListener listener)

运行测试,并将结果报告给监听器。

void setDevice(ITestDevice device)

注入被测设备。

void setModuleName(String moduleName)

设置要运行的 Android 原生压力测试模块。

公共构造函数

NativeStressTest

public NativeStressTest ()

公共方法

getDevice

public ITestDevice getDevice ()

获取被测设备。

返回
ITestDevice ITestDevice

getModuleName

public String getModuleName ()

获取要运行的 Android 原生测试模块。

返回
String 要运行的原生测试模块的名称,如果未设置,则返回 null

得分

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给监听器。

参数
testInfo TestInformation:包含要运行的有用信息的 TestInformation 对象 测试。

listener ITestInvocationListener:测试结果的 ITestInvocationListener

抛出
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

注入被测设备。

参数
device ITestDevice:要使用的 ITestDevice

setModuleName

public void setModuleName (String moduleName)

设置要运行的 Android 原生压力测试模块。

参数
moduleName String:要运行的原生测试模块的名称