Flood Announces Gatling 3.0 Support

We’re happy to announce support for Gatling 3.0 which is a major upgrade from 2.3.

The official migration guide covers all the details you need to know if making the switch from 2.x, however here as some of the essential tips when running Gatling load tests on Tricentis Flood.

No more import of Flood libraries

There’s no need import flood specific libraries to your load test scripts. This means you can get rid of the following import statement from your code:

import flood._

We handle the integration with Gatling internal libraries directly, so you can still see your HTTP request and response headers within your load test results.

Standard HTTP actions

You don’t need to override the HTTP action in your scripts, you can use them as you would if running your load tests locally. Note one of the common mistakes we see here, baseURL has been renamed into baseUrl.

val httpConf = http.baseUrl("https://flooded.io/")

Override Logback

Logback XML can be overriden in your scripts, if you need more detailed logs in your STDERR or STDOUT. Simply upload a zip file containing your desired conf/logback.xml settings and we’ll honour those during the flood. Warning, you should use DEBUG and TRACE log levels sparingly or with 1 or 2 users as these can be quite verbose.

Example script

To get your started with Gatling 3.0, here’s a sample script to show you the correct style / format. If you would like to start using Gatling 3.0 with Flood, please contact support@flood.io who will be happy to opt you in to this version.

Happy load testing!

import scala.concurrent.duration._

import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._

class GatlingExample extends Simulation { // Optional, Tricentis Flood will pass in threads, rampup and duration properties from UI val threads = Integer.getInteger("threads", 1000) val rampup = Integer.getInteger("rampup", 60).toLong val duration = Integer.getInteger("duration", 300).toLong
val httpConf = http.baseUrl("https://flooded.io/")
val scn = scenario("scenario")
.during(duration seconds) {
exec( http("Flooded - Home") .get("/") .check(status.is(200)) ) .pause(2)
.exec( http("Flooded - Search") .post("/random?f=test123") .check(status.is(200)) )
.pause(1000 milliseconds, 3000 milliseconds) }

setUp(scn.inject(rampUsers(threads) during (rampup seconds))).protocols(httpConf)
}

Gatling Load and Performance Testing

Gatling is a powerful open-source load and performance testing tool for web applications. Download Gatling and start testing now!

If you don’t yet have a Flood account, please sign up here.  Additionally, you can see how to get your Gatling script uploaded to Flood in just a few minutes with our Gatling getting started guide


Ready to get started?

Sign up or request a demo today.