Book Image

Gatling Fundamentals for Stress Testing APIs - Scala [Video]

By : James Willett Ltd.
5 (1)
Book Image

Gatling Fundamentals for Stress Testing APIs - Scala [Video]

5 (1)
By: James Willett Ltd.

Overview of this book

In this focused guide, we will dive into the world of Gatling, the potent open-source tool for web application load-testing. Starting with Gatling installation, we will uncover the power of Gatling Recorder, perfect for capturing user journeys and transforming them into scripts effortlessly. We will start by executing our first Gatling script and gain insights from the application through testing. This will be followed by core topics such as adding pauses, checking response codes, examining response bodies, and data extraction; we will then master debugging session variables and code reuse techniques. Moving ahead, we will dive into advanced topics such as looping HTTP calls, authentication and working with CSV feeders. We will understand basic and complex custom feeders, as well as templating files. We will introduce load simulations, ramping up users, and running Gatling from the command line with runtime parameters. Throughout the course, we will tackle challenges, refine our skills, and learn to monitor test executions with Gatling test result reports. We will also guide you on integrating Gatling into CI pipelines, covering GitHub repositories, Jenkins setup, and Travis CI configuration. By the end, you will be a Gatling expert, capable of effectively load-testing web applications and seamlessly integrating Gatling into CI/CD workflows, ensuring optimal performance and reliability.
Table of Contents (10 chapters)
Free Chapter
1
Introduction to Gatling
Chapter 3
Dependency Installation and Gatling Project Configuration
Content Locked
Section 5
Write Your First Gatling Script
In this video, we will embark on the journey of creating our very first Gatling script completely from scratch. While we have the option to utilize the Gatling recorder, which we have explored in a previous video, for automatic script generation based on user journeys, this time we will opt for the hands-on approach of writing our scripts manually. This method will provide us with a deeper understanding of script composition and its intricacies, enabling us to master Gatling scripting throughout the course.