Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
Write and run Tradefed tests
Stay organized with collections
Save and categorize content based on your preferences.
This section is aimed at developers, or test writers, providing guidance on test execution, as well as writing tests. The instructions are split into two broad categories of tests:
- Tests executing directly through Tradefed.
- Tests executing in the context of a suite, for example the Android Compatibility Test Suite (CTS).
We detail some features that are applicable to both suite and non-suite tests, for example:
- Automatic Retries for tests.
- Retry Isolation for tests.
We also provide some generic end-to-end examples about how to run some of the more common test types, such as:
- Execute the instrumentation tests from an existing APK.
The end-to-end examples above do not require a local checkout of Android. You can simply download Tradefed and use them directly.