Blog / New Features

Introducing Testfully CLI: Run test cases via terminal

Testfully CLI enables you to run test cases and collections via terminal and works well with major CI/CD tools. Testfully CLI also reports back the result of test runs. We have built Testfully CLI with flexibility in mind so you can run any combination of tests & collections using this tool.

Written byMatt
Published OnSun May 23 2021
Last UpdatedSun May 23 2021

Today we’re pleased to announce the general availability of Testfully CLI, a new member of Testfully toolchain and our solution to run test cases in the terminal. Our plan for Testfully CLI is big and we should be able to release more features in the upcoming months.

Table of Content

Testfully CLI vs Testfully Dashboard

Before we get started with Testfully CLI, we would like to clarify that the Testfully Dashboard is still and remains a big part of our offering, and we will continue to enhance both tools in parallel. We see Testfully CLI as a companion tool for Testfully dashboard. There are cases in which it makes more sense to run test cases in the terminal than in UI, and we have built Testfully CLI to cover those use cases. Our goal is to offer a suite of tools to help you with your API testing needs and Testfully CLI is one step towards that goal.

Features

For the first release of Testfully CLI, we focused on running test cases in the terminal. Using Testfully CLI, you can:

Integration with CI / CD pipelines

Testfully CLI was developed from the ground up to work with major CI/CD tools, and we have made this tool available for major Linux distros, Mac and windows. To use Testfully CLI as part of your CI/CD process, please download the related binary and start using it.

Get your API Key

To use Testfully CLI, you need to have an API Key. Please log in to your dashboard and navigate to the Settings > API Key section to get your API Key. Click on the “Generate” button (Or reset if you have already generated one) to get your API Key.

Get your Testfully API Key

Pass your API key to Testfully CLI using:

Although you can provide your API Key via the “—api-key” param, it’s not recommended as the API Key may end up in log files. We recommend passing the API Key via an environment variable.

Available commands

You can run the “testfully —help” command to get the instructions in your terminal. This section documents the available commands:

Examples

To run a single test using the default config:

testfully run --test-id=3326562665

To run multiple tests, provide “test-id” multiple times:

testfully run --test-id=3326562665 --test-id=10355883409

To run a single collection:

testfully run --collection-id=3326562665

To run multiple collections, provide “collection-id” multiple times:

testfully run --collection-id=3326562665 --collection-id=10355883409

To run both tests & collections, provide “collection-id” and “test-id”:

testfully run --test-id=3326562665 --collection-id=10355883409

To run tests using config from an environment, provide the environment-id:

testfully run --environment-id=3326562665 --test-id=10355883409

Download

Testfully CLI is available for major operating systems and architectures. Please use the links below to download a compatible binary.

Testfully is a bootstrapped startup from Sydney, Australia.
We're funded by our supportive & amazing customers.

The word `testfully` is a registered trademark of Testfully Pty Ltd.