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
9
votes
6 answers

Specifying a request body doing a Gatling POST

I'm a fresh newbie to Gatling. I'm trying to send a POST message to an HTTP API using Gatling. I tried the following: package app.basic import io.gatling.core.Predef._ import io.gatling.http.Predef._ import scala.concurrent.duration._ class…
Mike Malloy
  • 1,520
  • 1
  • 15
  • 19
9
votes
3 answers

Gatling: meaning of all fields in simulation.log file

I could not find any documentation other than four longs being the bytes received at the start and end regarding simulation.log file in Gatling output. Below is sample line from the log: My scenario - Sync 7526052819726874465-2088 REQUEST My…
user_1357
  • 7,766
  • 13
  • 63
  • 106
9
votes
2 answers

Gatling proxy configuration

This is a followup to this question. I'm using the same configuration. However, I'm trying to use an internal website through a proxy server. I'm not sure if the following the correct way to configure a proxy in the simulation. val httpConf…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
8
votes
1 answer

Gatling in scala how to get url from redirect

I using gatling ver 2.3.0 in scala. Is it possible after send request get a url from redirect to variable? e.g. I request for 192.168.1.30:8080/ and this link redirect me to 192.168.1.30:8080/token/123, can I get /token/123? I tried with this code…
Mateusz Sobczak
  • 1,551
  • 8
  • 33
  • 67
8
votes
2 answers

How do I actually run the Gatling test via SBT

I am trying to load test a web service using Gatling. this is my build.sbt import io.gatling.sbt.GatlingPlugin val gatlingVersion = "2.2.4" val dependencies = Seq( "io.gatling" % "gatling-core" % gatlingVersion, "io.gatling" % "gatling-http"…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
8
votes
1 answer

Gatling: exclude preparation request from reports

Here is my test scenario on Gatling: val createTemplatesScenario = scenario("Template creation") .feed(userFeeder) .exec(doLogin) // populates access token in the session .exec(doListProviders) .exec(doCreateTemplate) ... …
Bogdan Kobylynskyi
  • 1,150
  • 1
  • 12
  • 34
8
votes
2 answers

Spring Websocket STOMP load testing

I am developing a messaging application using Spring REST, Websocket/STOMP and RabbitMQ. We use are using gatling for load/stress testing the REST end points of the application. However, we would like to know how many messages can be processed with…
user3600073
  • 1,773
  • 3
  • 18
  • 21
8
votes
1 answer

Gatling simulation with fixed number of users for specific period of time

I have my Gatling scenario set up and now I want to configure a simulation with fixed number of users for specific period of time - number of users should initially be increased gradually to specific value and then kept there by adding new as…
Jarek Przygódzki
  • 4,284
  • 2
  • 31
  • 41
8
votes
1 answer

Additional import for duration/minutes DSL to work

The below is giving me a compilation error setUp( scn.inject( constantUsersPerSec(10) during(30 seconds) ) ) Getting below compilation error in IDE Cannot resolve symbol seconds. Am running gradle on IntelliJ and do not copy the…
Sathyakumar Seshachalam
  • 2,013
  • 3
  • 20
  • 32
8
votes
2 answers

Basic example for adding a value to the Gatling session needed

I want to be able to POST a SOAP request with a configurable value found in my Gatling source. Therefore, I have the following XML ELFileBody stored in the file "request.xml" ... ${cardNumber} ... I understand…
Karl Ivar Dahl
  • 1,023
  • 2
  • 11
  • 23
8
votes
2 answers

How to run gatling from code

I would like to run Gatling test from code. How to do it? Tutorials says only about command line and sbt. Context: I would like to extend tests. In background I have custom socket communication which I need to simulate. From that simulation I need…
Waldemar Wosiński
  • 1,490
  • 17
  • 28
8
votes
2 answers

Share data between gatling scenarios

I have a scenario that, with the help of a CSV file containing usernames and passwords, obtains session Ids and saves them using saveAs. I want to be able to use those session IDs in a following scenario that performs a few actions which need…
ideaz
  • 475
  • 6
  • 15
8
votes
4 answers

How to fail a Gatling test from within "exec"?

A Gatling scenario with an exec chain. After a request, returned data is saved. Later it's processed and depending on the processing result, it should either fail or pass the test. This seems like the simplest possible scenario, yet I can't find any…
hauron
  • 4,550
  • 5
  • 35
  • 52
8
votes
1 answer

Get auth token in Gatling

I'm trying to use Gatling to test my API but I've got a problem. I'm testing for now the login/logout. At the login, the user got a token, that is used for logout. When I use the recorder, it keep a fix token, and of course, it doesn't work when I…
Simon
  • 619
  • 2
  • 9
  • 23
7
votes
2 answers

Unrecognized VM option 'AggressiveOpts'

I'm trying to run my gatling project in intelliJ using Java 8. I know that the VM option 'AggressiveOpts' is deprecated in Java 11 and removed in Java 12, but I was wondering why I am getting this error in Java 8? I have updated my project SDK to be…
MxTxx
  • 71
  • 1
  • 1
  • 3