Contact Free trial Login

To Install BAT

The Blackbox Automated Testing (BAT) CLI wrapper is a command line wrapper that you install to execute API tests.

Prerequisite for Linux and MacOS Systems

Before installing the BAT CLI, ensure that AdoptOpenJDK’s OpenJDK 8 is installed on your system.

Prerequisites for Windows 10 Systems

  1. Install Windows Subsystem for Linux (WSL)

  2. Install Java 8, curl, and the application "unzip" into the Linux distribution that you installed in your WSL.

  3. Add the bat executable to your PATH environment variable:

    1. Open the ~/.bashrc file (if you are using bash) or the ~/.zshrc file (if you are using zsh) for editing. For example, to use the vi editor, enter either of these commands:

      vi ~/.bashrc

      vi ~/.zshrc

    2. Add the following line to the end of the file and then save the file:

      export PATH=$PATH:~/.bat/bat/bin

Procedure

  1. Run the following command to install the BAT CLI:

    curl -o- 'https://s3.amazonaws.com/bat-wrapper/install.sh' | bash

  2. Run the command bat -version to verify that the BAT CLI is installed.

What To Do Next

You can now start creating a test suite.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub