本机压力测试

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原生压力测试模块运行。

公共构造函数

本机压力测试

public NativeStressTest ()

公共方法

获取设备

public ITestDevice getDevice ()

获取被测设备。

退货
ITestDevice ITestDevice

获取模块名称

public String getModuleName ()

获取要运行的 Android 本机测试模块。

退货
String要运行的本机测试模块的名称,如果未设置则为 null

跑步

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

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

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

listener ITestInvocationListener :测试结果的ITestInvocationListener

投掷
DeviceNotAvailableException

设置设备

public void setDevice (ITestDevice device)

注入被测设备。

参数
device ITestDevice :要使用的ITestDevice

设置模块名称

public void setModuleName (String moduleName)

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

参数
moduleName String :要运行的本机测试模块的名称