Automation Overview
The Testiny CLI is a powerful command-line tool to upload results from your automated tests to Testiny or to import test cases into Testiny.
The CLI is designed for various use cases and scenarios:
- Quickly submit your test automation results from the command line or your CI/CD pipeline
- Supports both standard and advanced workflows such as parallel testing jobs
- Works with any test automation tool and framework by using standard JUnit XML report files
NPM package and downloads
The Testiny-Importer CLI is distributed over multiple channels:
- Use the NPM package (Testiny CLI)
- You can also download the zip packages with executables for the following platforms:
If the CLI does not support a specific use case yet, you can also directly use Testiny’s REST API.
Getting started
Download the respective file for your platform and extract it in any folder. In succession, open a shell or terminal in this folder and use the following command to display the CLI help to validate that the file can be properly executed:
- Linux
- Windows
- Mac
./testiny-importer-linux --help
testiny-importer-windows.exe --help
./testiny-importer-macos --help
The output looks similar to this:
o---o -----------------------------
| TESTINY IMPORTER
\-o -----------------------------
Usage: testiny-importer [options] [command]
Options:
--app <url> App endpoint to use (default: "https://app.testiny.io/")
-P, --project <nameOrKey> Target project id or key
...
In order to use the CLI tool, you will need to create an API key first for authentication. Learn more about creating API keys.
There’s no need to install any dependencies to run the Testiny importer. We bundle all required files into one file that you can execute everywhere. You can use our CLI on any platform, including Java, JavaScript/TypeScript, .Net, Python, Ruby, C++ and many more.