NativeStressTest

public class NativeStressTest
extends Object implements IDeviceTest, IRemoteTest

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


A Test that runs a native stress test executable on given device.

It uses NativeStressTestParser to parse out number of iterations completed and report those results to the ITestInvocationListeners.

Summary

Constants

String AVG_ITERATION_TIME_KEY

String DEFAULT_TEST_PATH

String ITERATION_KEY

Public constructors

NativeStressTest()

Public methods

ITestDevice getDevice()

Get the device under test.

String getModuleName()

Get the Android native test module to run.

void run(ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setDevice(ITestDevice device)

Inject the device under test.

void setModuleName(String moduleName)

Set the Android native stress test module to run.

Constants

AVG_ITERATION_TIME_KEY

String AVG_ITERATION_TIME_KEY

Constant Value: "avg-iteration-time"

DEFAULT_TEST_PATH

String DEFAULT_TEST_PATH

Constant Value: "data/nativestresstest"

ITERATION_KEY

String ITERATION_KEY

Constant Value: "iterations"

Public constructors

NativeStressTest

NativeStressTest ()

Public methods

getDevice

ITestDevice getDevice ()

Get the device under test.

Returns
ITestDevice the ITestDevice

getModuleName

String getModuleName ()

Get the Android native test module to run.

Returns
String the name of the native test module to run, or null if not set

run

void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener ITestInvocationListener: the ITestInvocationListener of test results
Throws
DeviceNotAvailableException

setDevice

void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device ITestDevice: the ITestDevice to use

setModuleName

void setModuleName (String moduleName)

Set the Android native stress test module to run.

Parameters
moduleName String: The name of the native test module to run