class

InstrumentationListTest

extends Object
implements IDeviceTest IRemoteTest
java.lang.Object
   ↳ com.android.tradefed.testtype.InstrumentationListTest

Class Overview

A Test that runs a set of individual instrumentation tests.

Summary

Constants
int FAILED_RUN_TEST_ATTEMPTS number of attempts to make if test fails to run
Public Methods
ITestDevice getDevice()
Get the device under test.
void run(ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
void setDevice(ITestDevice device)
Inject the device under test.
void setRunName(String runName)
Optionally, set a custom run name.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.testtype.IDeviceTest
From interface com.android.tradefed.testtype.IRemoteTest

Constants

static final int FAILED_RUN_TEST_ATTEMPTS

number of attempts to make if test fails to run

Constant Value: 2 (0x00000002)

Public Methods

public ITestDevice getDevice ()

Get the device under test.

Returns

public void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener the ITestInvocationListener of test results

public void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device the ITestDevice to use

public void setRunName (String runName)

Optionally, set a custom run name.