Error Handling
Explore how the error handling construct works in Gatling.
We'll cover the following...
In the previous lesson, we learned about the different conditional statements that Gatling offers. In this lesson, we will learn about the different ways to handle errors in the Gatling test script.
Gatling provides us ways to gracefully handle the errors and retry the actions on failure using constructs, such as tryMax
, exitBlockOnFail
, and exitHereIfFailed
.
Let’s learn about them in detail.