Introducing Testfully CLI: Run test cases via terminal

Introducing Testfully CLI: Run test cases via terminal


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:

  • run a single or multiple test cases simultaneously
  • run a single or multiple collections simultaneously
  • run a combination of test cases & collections simultaneously
  • run tests and collections using environment config
  • run tests using default configs
  • receive feedback about test failures instantly
  • check the detailed result in the Testfully dashboard using the provided links


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:

  • “–api-key” argument (not recommended for CI/CD)
  • TESTFULLY_CLI_API_KEY environment variable (recommended)

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:

  • testfully run runs tests & collections
  • testfully version prints current version of Testfully CLI


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.

comments powered by Disqus

Recent Articles

blog-image
7 HTTP methods and how to use them

HTTP protocol works by clients sending requests to the servers and servers responding to the requests. We do CRUD operations (Create, Read, Update, Delete) by sending HTTP requests with different HTTP methods, sometimes called HTTP verbs.



blog-image
Introduction to API Blueprint

API blueprint is a powerful high-level API design language for web APIs. In this article, we want to dive deeper into it and learn more about how it works, the differences between API blueprint and Swagger, and what makes it unique that leads to its extensive use. But before we dig into API Blueprint, we must ensure a solid base of information about the “API first approach” concepts.

blog-image
False positive & false negative in software testing

Exports in automated software testing have borrowed false positive and false negative terms from the medical examination field. In the medical field, the purpose of a test is to determine whether the patient has a particular medical condition or not. As far as software testing is concerned, a false positive indicates a bug when there is none. Conversely, a false negative indicates no bug when there is one.