Android Test Station offers APIs to schedule test runs, verify progress, and more. You can use them to integrate Test Station into your workflows and services.
The Android Test Station interface is RESTful, uses resource-oriented URLs, and handles JSON-encoded data.
Version R12 introduces an API explorer that documents the API endpoints, including their parameters and responses. You can use the API explorer to try APIs.
Figure 1. Link to the API explorer
Figure 2. API explorer with OpenAPI specification highlighted
Generating a client
You can generate Android Test Station clients from the OpenAPI specification
located in the API explorer (at
Download the OpenAPI Generator tool.
Run the following command to generate a client in the specified programming language.
java -jar openapi-generator-cli.jar generate \ --input-spec http://localhost:8000/_ah/api_docs/api.json \ --generator-name LANGUAGE \ --output OUTPUT_DIRECTORY
See the OpenAPI Generator documentation for more information.