Build providers in Tradefed

Build providers in TF are represented by the IBuildProvider interface.

Any implementation of the interface can be used in a test configuration. This flexible design allows interacting with any type of system.

A build provider creates build info populated with all the resources needed by the setup and tests.

Local build providers

When running locally, several possible configurations exist:

  • Find and use a locally built device image: LocalDeviceBuildProvider. This is typically used to flash a locally built Android image before running its tests.
  • Find and use locally built test cases: BootstrapBuildProvider. This is typically used to run tests against an already flashed and ready device. This is the provider used by Atest during local testing.


Use the object tag build_provider. For example:

<build_provider class="" />