Using the REST API
Testmo's REST API is a typical HTTP-based API to access Testmo's data model and create/update objects. Before directly accessing the HTTP API from your scripts and integrations, consider using our popular Testmo CLI tool instead, as it provides an easy way to use the API and submit automation results without any custom programming.
Testmo CLI
Our Testmo CLI is the easiest option to use Testmo's API and implement test automation integrations, submit automated test results from your CI/CD pipeline and implement advanced workflows.
For example, it's very easy to submit your automated test results in JUnit XML format (supported by pretty much any test automation tool) from the command line or CI/CD workflow:
The Testmo CLI also supports advanced workflows such as parallel testing, custom fields, submitting artifacts etc. The Testmo CLI tool can also directly launch your automation tool to measure test times, record exit statuses and capture the complete console output. Make sure to review its full documentation here:
JavaScript / Node.js package
We also provide a ready-to-use Node.js package to make it easier to consume and call the API from your custom JavaScript code. The package is also used by the Testmo CLI tool, so it's always up-to-date. Here's a basic example on how to use the package:
HTTP API methods
You can also directly access Testmo's API from your custom scripts or command line if you prefer. To make it easier to consume the API, we also publish an OpenAPI schema to generate additional client libraries for more programming languages. Accessing the API is easy and you can directly call the HTTP methods and passing the authentication token:
You can learn more about authenticating with the API and generating API keys in Testmo's user interface.
Last updated