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
-
Install Windows Subsystem for Linux (WSL)
The instructions are at https://docs.microsoft.com/en-us/windows/wsl/install-win10.
-
Install Java 8, curl, and the application "unzip" into the Linux distribution that you installed in your WSL.
-
Add the
bat
executable to yourPATH
environment variable:-
Open the
~/.bashrc
file (if you are usingbash
) or the~/.zshrc
file (if you are usingzsh
) for editing. For example, to use thevi
editor, enter either of these commands:vi ~/.bashrc
vi ~/.zshrc
-
Add the following line to the end of the file and then save the file:
export PATH=$PATH:~/.bat/bat/bin
-