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
32
votes
3 answers

Parallel execution of multiple scenarios

What ist the best practice for parallel execution of multiple scenarios? For example 30% Users execute scenario1 and 70% users scenario2. Is the code below the right way or is it better to have one scenario with contional executions of REST…
Hans Holzbart
  • 1,113
  • 1
  • 15
  • 22
29
votes
2 answers

Docker - Override or remove ENTRYPOINT from a base image

I'm using Docker (version 1.12.2, build bb80604) to setup a simple image/container with Gatling (Load Testing tool) + NodeJS. So, I pulled this Docker/Gatling base image and created my own Dockerfile to install NodeJS on it. However, the…
user2253130
  • 589
  • 2
  • 5
  • 14
25
votes
6 answers

Gatling - Log body of request in simulation.log or console

I would like to see what is in the body of the post that I am sending in my script. In fact, I would like to see the request, request body and response. From looking at the docs and the forums, I see that I can uncomment a line in logback-test.xml…
namesake
  • 325
  • 1
  • 4
  • 8
23
votes
3 answers

Gatling: How to display full HTTP response body in the console or print it into a file

I'm new to Gatling. I could not find a simple complete example of how to see the full HTTP response body. This is my simple example class CreateNotecard extends Simulation { val baseURL = "https://portal.apps.stg.bluescape.com" val…
Vladimir
  • 630
  • 3
  • 12
  • 26
23
votes
1 answer

How to add random value in Json Body in Gatling?

I need to create a random positive integer each time and send it to Json body in Gatling. I used the below code to create a random positive ineger: val r = new scala.util.Random; val OrderRef = r.nextInt(Integer.MAX_VALUE); but, How can I feed the…
Gold Meen
  • 342
  • 1
  • 3
  • 11
22
votes
5 answers

Modularising scenarios to run in sequence using Gatling

I'm trying to modularise a series of performance tests in Gatling. Several of the tests execute the same initial path through the pages, so I thought that I could break them down into a series of scenarios, each scenario being a series of shared…
Mark Baker
  • 209,507
  • 32
  • 346
  • 385
19
votes
4 answers

How to debug/run a single gatling simulation in IntelliJ IDEA without sbt command?

How could I debug or run the BasicSimulation.scala? Now I use sbt command to run: testOnly simulations:BasicSimulation Is there any other easy way to debug? Thanks.
Ansen
  • 193
  • 1
  • 1
  • 4
18
votes
7 answers

Build executable JAR for Gatling load test

I am new to Gatling (2.1.2) and want to do a small prototype project to show to my colleagues. According to the quick start page, there are several ways I can run a simulation with Gatling: decompress the Gatling bundle into a folder and drop my…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
14
votes
2 answers

Gatling switch protocols during scenario

I'm trying to create a Gatling scenario which requires switching the protocol to a different host during the test. The user journey…
Blank
  • 4,635
  • 5
  • 33
  • 53
14
votes
1 answer

Parsing a Json response returned to Gatling

I am trying to parse a json response returned to gatling by the server. My response from server is: SessionAttribute( Session( GetServices, 3491823964710285818-0, Map( gatling.http.cache.etagStore ->…
user1075958
  • 201
  • 1
  • 3
  • 6
13
votes
1 answer

Gatling - Looping through JSON array

I have a block of code which needs to loop through a JSON array which is obtained from response of a REST service. (Full gist available here.) .exec(http("Request_1") .post("/endPoint") .headers(headers_1) …
Neil
  • 5,919
  • 15
  • 58
  • 85
12
votes
1 answer

Gatling-Value baseURL is not a member of io.gatling.http.protocol.HttpProtocolBuilder

I've written the following Gatling scenario below. I'm getting the following error Value baseURL is not a member of io.gatling.http.protocol.HttpProtocolBuilder I tried directly importing the io.gatling.http.protocol.HttpProtocolBuilder but that did…
Zac Davidson
  • 247
  • 1
  • 6
  • 13
12
votes
1 answer

Gatling-scala check 2 status codes (either or)

In a gatling test, I am trying to verify whether the response for a request is either 204 or 404. val scn = scenario("Scenario A").exec(httpRequest .check(status.is(204))) where httpRequest is a request defined elsewhere. I want to check…
Akhil
  • 183
  • 1
  • 1
  • 8
11
votes
1 answer

Gatling: Understanding rampUsersPerSec(minTPS) to maxTPS during seconds

I am checking a scala code for gatling where they inject transactions for the period of 20 seconds. /*TPS = Transaction Per Second */ val minTps = Integer.parseInt(System.getProperty("minTps", "1")) val maxTps =…
Hani Gotc
  • 840
  • 11
  • 24
11
votes
5 answers

Alternative to Gatling

I’ve been having issues lately because my dependencies has been updated to use netty 4.1 and Gatling has not been updated for a while, and still work only on Netty 4.0. Anybody knows any alternative to Gatling to create similar Simulations and…
paul
  • 12,873
  • 23
  • 91
  • 153
1
2 3
99 100