Gatling Project Configuration and Setup

Learn how to set up the Gatling test project programmatically and install the required software for running Gatling test scripts.

In the previous lesson, we learned how to use a Gatling recorder and run the captured test script. In this lesson, we will learn how to set up the environment for writing our first Gatling test script. As we discussed before, Gradle allows us to cache dependencies locally and download them in parallel. Let’s see how it’s done.

Installation of prerequisites

For installing Gradle, Java 8 is preferred.

Mac / Linux

Let’s install brew first.

Once brew is installed, run the following command to install Gradle.

brew install gradle

Windows

Let’s install scoop first by running the following command in Powershell.

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

# or shorter
iwr -useb get.scoop.sh | iex

Once scoop is installed, run the following command to install Gradle.

scoop install gradle

Get hands-on with 1400+ tech skills courses.