Importing Results from Automated Tests
The CLI is designed to easily collect your automated test results from your servers, your CI/CD pipeline, automation tools or anywhere else. Once you have installed or downloaded the CLI tool as described in the Getting Started section, you can start submitting test results to Testiny.
To send your test automation results to Testiny, you'll need to configure your automated test framework to output a JUnit report. JUnit is a standard file format used to exchange automated test results between different tools or to import them from CI/CD systems and most frameworks support JUnit reports. Testiny CLI currently also supports Playwright JSON files as well.
After you have executed your automated tests and generated your result files, simply use the CLI to send your results to Testiny.
Here are examples of how to import a Junit test result file using the npm package or the standalone executables:
- Node.js/npm
- Linux
- Windows
- Mac OS
$ npx @testiny/cli testrun --confirm --apikey <API_KEY> --project <PROJECT_KEY> --junit <results>.xml
$ ./testiny-importer-linux testrun --confirm --apikey <API_KEY> --project <PROJECT_KEY> --junit <results>.xml
$ testiny-importer-win.exe testrun -y testrun --apikey <API_KEY> --project <PROJECT_KEY> --junit <results>.xml
$ ./testiny-importer-macos testrun --confirm --apikey <API_KEY> --project <PROJECT_KEY> --junit <results>.xml
The API key can be set as an environment variable or directly passed as an argument
After submitting your automated test results, the data should immediately show up on the Test-Runs page as shown below (you may need to switch to the correct project).
Related topics