public class

DeviceTestSuite

extends TestSuite
implements IDeviceTest IRemoteTest
java.lang.Object
   ↳ junit.framework.TestSuite
     ↳ com.android.tradefed.testtype.DeviceTestSuite

Class Overview

Helper JUnit test suite that provides the IRemoteTest and IDeviceTest services.

Summary

Public Constructors
DeviceTestSuite(Class<?> testClass)
DeviceTestSuite()
Public Methods
void addTestSuite(Class testClass)
Adds the tests from the given class to the suite
ITestDevice getDevice()
Get the device under test.
void run(ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
void runTest(Test test, TestResult result)
Overrides parent method to pass in device to included test
void setDevice(ITestDevice device)
Inject the device under test.
[Expand]
Inherited Methods
From class junit.framework.TestSuite
From class java.lang.Object
From interface com.android.tradefed.testtype.IDeviceTest
From interface com.android.tradefed.testtype.IRemoteTest
From interface junit.framework.Test

Public Constructors

public DeviceTestSuite (Class<?> testClass)

public DeviceTestSuite ()

Public Methods

public void addTestSuite (Class testClass)

Adds the tests from the given class to the suite

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 runTest (Test test, TestResult result)

Overrides parent method to pass in device to included test

public void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device the ITestDevice to use