Questions tagged [gatling]

Gatling is an open-source load testing framework based on Scala, Akka and Netty.

Gatling is an open-source stress tool with:

  • High performances
  • Simple concepts
  • A DSL to describe scenarios
  • HTTP support
  • A scenario recorder
  • Meaningful reports

Gatling is built upon :

  • Async Http Client and Netty for non-blocking HTTP;
  • Akka for actions (requests, pauses, assertions, etc...) modeling and orchestration;
  • Scala interpreter for scripting.

Links:

1684 questions
11
votes
1 answer

Gatling j.n.ConnectException: Address already in use

When running simulations with Gatling I get the following exceptions: j.n.ConnectException: Address already in use: no further information Does this occur when the server tested against fails to respond or timeout? I want to make sure this is a…
sam
  • 568
  • 1
  • 8
  • 16
11
votes
2 answers

How to bring jenkins job to fail when Gatling load tests underperform

has anyone tried to fail the running Jenkins Job when Gatling asserts are not met or if the requests fail? For instance: mark a Jenkins build as unstable when the Global mean value for the 95th percentile is under a specific value, say 1.2 sec for…
VeRo
  • 956
  • 13
  • 27
11
votes
1 answer

How can I get a Random URL on http request for Gatling?

I would like to get a Random URL on http request for Gatling My scenario is defined like this: import io.gatling.core.Predef._ import io.gatling.http.Predef._ import scala.concurrent.duration._ import scala.util.Random class testSimulation extends…
11
votes
3 answers

Gatling configure base url in configuration file

I want to configure the base url of my gatling simulation in the configuration file. So that I can easy switch between test and live system. I works fine when I configure it in the simulation-scala file with: val httpConf = http …
leo
  • 3,677
  • 7
  • 34
  • 46
11
votes
2 answers

Scala function that returns an anonymous object?

I want to do some funky closure-like stuff. I want a method to return an anonymous object whose guts make reference to the parameters of the method. Here is the code that I wrote that illustrates my intent: object SessionManagement { implicit…
John Arrowwood
  • 2,370
  • 2
  • 21
  • 32
10
votes
1 answer

Increasing connection timeout for Tomcat in Spring Boot

How can timeout be increased so that till response is processed, request does not timeout? Tomcat settings in Spring Boot: server.tomcat.max-connections=2000 server.tomcat.max-threads=200 server.connection-timeout=1200000 Request per second were…
fortm
  • 4,066
  • 5
  • 49
  • 79
10
votes
6 answers

Gatling Error: There is no simulation script. Please check that your scripts are in user-files/simulations

I'm new to Gatling and I'm trying to use ./gatling.sh to open a simulation script but I'm getting the following error: There is no simulation script. Please check that your scripts are in user-files/simulations I can view multiple scripts within…
Timothy Hawkins
  • 151
  • 1
  • 3
  • 9
10
votes
0 answers

Gatling: requests inside foreach loop not having the same number of executions

I have this script: .foreach("${list}", "item") { exec(http("Req 1") .post("/path/to/service/one") .formParam("param1", "${item}") .formParam("param2", "somestring") .formParam("param3", "${param3}") …
Altealice
  • 3,572
  • 3
  • 21
  • 41
10
votes
1 answer

How do I get Gatling reports to show URLs instead of request_0 etc?

I'm new to Gatling, apologies if this is a complete noob question. The "Details" tab of my Gatling report looks like this: The left-hand menu contains all the requests that were made. My problem is that, in all but a few rare cases, they're just…
Doug McLean
  • 1,289
  • 12
  • 26
10
votes
1 answer

jsonpath find string value in the jsonarray independent of array index

I have a Gatling JSON objects of array. The object contains error messages e.g. "error": [ { "errorCode": "111", "errorMessage": "very dynamic error :- at [Source: java.io.PushbackInputStream@5d0edb12; line: 6, column: 6]; nested…
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
10
votes
2 answers

Gatling: How to setUp and tearDown scenario

I have a Gatling test which should do the following: create user once retrieve user's data according to specific load model. Actual load testing. delete user after when done Question: how to emulate this with Gatling? If I chain calls like : val…
Fedor
  • 559
  • 1
  • 7
  • 19
9
votes
4 answers

gradlew gatlingRun doesn't run any test

I am trying to perform a load testing with gradle-gattling, below are my build.gradle and my BasicSimulation.scala plugins { id "com.github.lkishalmi.gatling" version "3.0.2" } repositories { mavenCentral() } apply plugin:…
Saber Alex
  • 1,544
  • 3
  • 24
  • 39
9
votes
1 answer

Gatling exec with session

I need to make a request in Gatling, in which I'm able to access session items (without the expression language). I need to do this, because I want to inject data into a ByteArrayBody request from a csv feeder. To demonstrate my problem, I have a…
MetaColon
  • 2,895
  • 3
  • 16
  • 38
9
votes
4 answers

how to integrate gatling with jenkins

I want to use gatling for load testing integrating it with jenkins. Can anyone supply me the step by step methods for doing that. I have a very little knowledge of using maven and sbt.
megamind
  • 627
  • 9
  • 17
9
votes
1 answer

How to use return of one gatling request into another request - Scala

In the following code, I am getting a token in the first Gatling request, saving it in a variable named auth. However, when I try to use it in the second request, it is sending empty string in place of auth variable. So for some reason, the auth…
Kshitij Mittal
  • 2,698
  • 3
  • 25
  • 40