com.android.tradefed.testtype

Interfaces

CodeCoverageReportFormat An interface representing the output format of a code coverage report  
IAbi Interface representing the ABI under test. 
IAbiReceiver A test that needs the ABI under test. 
IBuildReceiver A test that needs reference to the build under test. 
IDeviceTest Interface for object that needs a reference to a ITestDevice
IInvocationContextReceiver A test that needs reference to the context of the invocation. 
IMultiDeviceTest A test that needs reference to all the ITestDevice and their associated IBuildInfo

Most tests should not have a dependency on the build-under-test, and should rely on ITargetPreparers to prepare the test environment. 

INativeDeviceTest Interface for object that needs a reference to a INativeDevice
IRemoteTest A test that reports results directly to a ITestInvocationListener
IResumableTest An IRemoteTest that supports resuming a previous aborted test run from where it left off. 
IRetriableTest A IRemoteTest that supports retrying if the test aborted before completion. 
IRuntimeHintProvider  
ISetOptionReceiver Implementation of this interface should have an Option with a "set-option" name linked to SET_OPTION_NAME
IShardableTest A IRemoteTest that can be split into separately executable sub-tests. 
IStrictShardableTest A IRemoteTest that can be sharded into separately executable sub-tests. 
ITestAnnotationFilterReceiver A runner that can filter which tests to run based on annotations. 
ITestCollector Provides support for test collection; when set, test runner must perform a dry run to collect test cases without actually executing them. 
ITestFileFilterReceiver A runner that can receive a file specifying which tests to run and/or not to run. 
ITestFilterReceiver A runner that can filter which tests to run. 

Classes

Abi A class representing an ABI. 
AndroidJUnitTest A Test that runs an instrumentation test package on given device using the android.support.test.runner.AndroidJUnitRunner. 
CodeCoverageTest A Test that runs an instrumentation test package on a given device and generates the code coverage report. 
CodeCoverageTestBase<T extends CodeCoverageReportFormat> An abstract base class which runs installed instrumentation test(s) and collects execution data from each test that was run. 
CodeCoverageTestBase.CoverageCollectingListener A ResultForwarder which collects coverage files. 
CompanionAwareTest Base test class that encapsulates boilerpate of getting and checking companion device

Subclass may call getCompanion() to retrieve the allocated companion. 

DeviceBatteryLevelChecker An ITargetPreparer that checks for a minimum battery charge, and waits for the battery to reach a second charging threshold if the minimum charge isn't present. 
DeviceJUnit4ClassRunner JUnit4 test runner that also accommodate IDeviceTest
DeviceJUnit4ClassRunner.MetricAnnotation Fake annotation meant to carry metrics to the reporters. 
DeviceJUnit4ClassRunner.TestMetrics Implementation of ExternalResource and TestRule
DeviceSuite Extends the JUnit4 container Suite in order to provide a ITestDevice to the tests that requires it. 
DeviceTestCase Helper JUnit test case that provides the IRemoteTest and IDeviceTest services. 
DeviceTestResult An specialization of TestResult that will abort when a DeviceNotAvailableException occurs  
DeviceTestSuite Helper JUnit test suite that provides the IRemoteTest and IDeviceTest services. 
FakeTest A fake test whose purpose is to make it easy to generate repeatable test results. 
GoogleBenchmarkResultParser Parses the results of Google Benchmark that run from shell, and return a map with all the results. 
GoogleBenchmarkTest A Test that runs a Google benchmark test package on given device. 
GTest A Test that runs a native test package on given device. 
GTestListTestParser A result parser for gtest dry run mode with "--gtest_list_tests" parameter. 
GTestResultParser Parses the 'raw output mode' results of native tests using GTest that run from shell, and informs a ITestRunListener of the results. 
GTestXmlResultParser Parses the 'xml output mode' results of native tests using GTest that run from shell, and informs a ITestRunListener of the results. 
HostTest A test runner for JUnit host based tests. 
InstalledInstrumentationsTest Runs all instrumentation found on current device. 
InstrumentationFileTest Runs a set of instrumentation tests by specifying a list of line separated test classes and methods in a file pushed to device (expected format: com.android.foo.FooClassName#testMethodName)

Note: Requires a runner that supports test execution from a file. 

InstrumentationSerialTest A Test that runs a set of instrumentation tests by running one adb command for per test. 
InstrumentationTest A Test that runs an instrumentation test package on given device. 
JackCodeCoverageTest An IRemoteTest which runs installed instrumentation test(s) and generates a code coverage report. 
JacocoCodeCoverageTest An IRemoteTest that generates a code coverage report by generating build.xml on the fly and executing the ant command. 
JUnitRunUtil A helper class for directing a run(ITestInvocationListener) call to a run(TestResult) call. 
MetricTestCase Extension of TestCase that allows to log metrics when running as part of TradeFed. 
NativeBenchmarkTest A Test that runs a native benchmark test executable on given device. 
NativeBenchmarkTestParser A IShellOutputReceiver that parses the benchmark test data output, collecting metrics on average time per operation. 
NativeStressTest A Test that runs a native stress test executable on given device. 
NativeStressTestParser A IShellOutputReceiver that parses the stress test data output, collecting metrics on number of iterations complete and average time per iteration. 
NoisyDryRunTest Run noisy dry run on a command file. 
PythonUnitTestResultParser Interprets the output of tests run with Python's unittest framework and translates it into calls on a series of ITestRunListeners. 
PythonUnitTestRunner Runs Python tests written with the unittest library. 
StubTest No-op empty test implementation. 
SubprocessTfLauncher A IRemoteTest for running tests against a separate TF installation. 
TfTestLauncher A IRemoteTest for running unit or functional tests against a separate TF installation. 
UiAutomatorRunner Runs UI Automator test on device and reports results. 
UiAutomatorTest  
VersionedTfLauncher A IRemoteTest for running tests against a separate TF installation. 

Enums

JackCodeCoverageReportFormat The output formats supported by the jack code coverage report tool. 
JacocoCodeCoverageReportFormat The output formats supported by the jacoco code coverage report tool. 
PythonUnitTestResultParser.ParserState Keeps track of the state the parser is currently in. 
UiAutomatorTest.LoggingOption  
UiAutomatorTest.TestFailureAction  

Exceptions

DeviceTestResult.RuntimeDeviceNotAvailableException