com.android.tradefed.testtype

Interfaces

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
IReportNotExecuted In case of an incomplete execution, IRemoteTest that implements this interface may report their non-executed tests for improved reporting. 
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 HostTest#SET_OPTION_NAME
IShardableTest A IRemoteTest that can be split 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. 
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.LogAnnotation Fake annotation meant to carry logs to the reporters. 
DeviceJUnit4ClassRunner.MetricAnnotation Fake annotation meant to carry metrics to the reporters. 
DeviceJUnit4ClassRunner.TestLogData Implementation of ExternalResource and TestRule
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  
DeviceTestResult.RuntimeDeviceNotAvailableException  
DeviceTestSuite Helper JUnit test suite that provides the IRemoteTest and IDeviceTest services. 
DynamicFileStubTest This is a tradefed test to test tradefed can resolve dynamic file correctly. 
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. 
GTestBase The base class of gTest  
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 ITestInvocationListener 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. 
HostGTest A Test that runs a native test package. 
HostTest A test runner for JUnit host based tests. 
InstalledInstrumentationsTest Runs all instrumentation found on current device. 
InstrumentationTest A Test that runs an instrumentation test package on given device. 
JUnitRunUtil A helper class for directing a IRemoteTest#run(ITestInvocationListener) call to a Test#run(TestResult) call. 
MetricTestCase Extension of TestCase that allows to log metrics when running as part of TradeFed. 
MetricTestCase.LogHolder Structure to hold a log file to be reported. 
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. 
NativeCodeCoverageListener A ResultForwarder that will pull native coverage measurements off of the device and log them as test artifacts. 
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 ITestInvocationListeners. 
PythonUnitTestRunner This class is deprecated. Use PythonBinaryHostTest instead.  
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

UiAutomatorTest.LoggingOption  
UiAutomatorTest.TestFailureAction