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

How to increment a variable in Gatlling Loop

I am trying to write a Gatling script where I read a starting number from a CSV file and loop through, say 10 times. In each iteration, I want to increment the value of the parameter. It looks like some Scala or Java math is needed but could not…
pparthi
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

Using Gatling as an integration test tool

Currently I have a small suite of integration tests running against my web-server which makes a request and asserts some assumptions on what the responses should be. These are written in Ruby generating http requests. I've been looking at Gatling…
Neil
  • 5,179
  • 8
  • 48
  • 87
6
votes
2 answers

Switching to Gatling for Load Testing

I'd like to use Gatling for REST performance and scalability web service testing. I'm currently using JMeter for this as I wasn't aware of gatling when I started this project. Gatling would integrate better and would be better for the project a…
Rogue_Leader
  • 212
  • 3
  • 14
5
votes
1 answer

gatling-3.0.0: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

i am using Gatling 3.0.0 as a plugin in SBT i am configuring the browser as given in the https://gatling.io/docs/current/http/recorder/#recorder under configuration heading after then when i start the recorder using gatling:startRecorder in sbt and…
swaheed
  • 3,671
  • 10
  • 42
  • 103
5
votes
2 answers

Gatling: Keep fixed number of users/requests at any instant

how can we keep fixed number of active concurrent users/requests at time for a scenario. I have an unique testing problem where I am required to do the performance testing of services with fixed number of request at a given moment for a given time…
Ravinder Payal
  • 2,884
  • 31
  • 40
5
votes
2 answers

Making gatling generate random data per request using a feeder

I'm trying to get gatling to create random data per POST request. I've followed a few posts on stackoverflow and other places. I came up with this scenario - def randomUuid = UUID.randomUUID().toString val feeder = Iterator.continually(Map("user" ->…
Vivek Rao
  • 576
  • 4
  • 25
5
votes
2 answers

Gatling JSON Feeder Unique POST Bodies

I have a JSON file that contains a JSON Array test.json [ { "Name": "Bob" }, { "Age": "37" }, { "DOB": "12/01/1985"} ] I would like to test each respective element in the JSON array against an endpoint to observe the performance of the system…
Bobshark
  • 376
  • 1
  • 3
  • 12
5
votes
3 answers

Gatling - How to set gatling console log level in scala

I have created a maven project that will generate a jar file with all my simulations in it and when I run it, the console log level is too high. There is too much unusefull informations for me. Is there a way to configure it in the code ? Here is…
kamal951
  • 167
  • 2
  • 15
5
votes
2 answers

How do i perform conditional check using Gatling

I have a scenario like this. private val feeder = Array(200, 404).map(e => Map("code" -> e)).random.circular private val search = scenario("search") .feed(feeder) .exec(http("search") …
Sarath
  • 1,438
  • 4
  • 24
  • 40
5
votes
1 answer

Using gatling session variable in triple qouted string

How to use session variable in StringBody of gatling? I have defined my exec like, val migrateAsset = exec(_.set("assetId", AssetIdGenerator.generateRandomAssetId())) .exec(http("Migrate Asset") .post(s"$url/asset/metadata") …
Aditya
  • 1,334
  • 1
  • 12
  • 23
5
votes
0 answers

JsonPath check hashMap values are present using Gatling?

I want to compare some in the jsonPath passed as HashMap() data. How can we achieve it in gatling check ? val hashMap = new HashMap[String,String]() hashMap.put("foo", "bar") OR can I simply check something like this…
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
5
votes
1 answer

How to add a condition count > 8 in Gatling script?

I want to add a below condition in http request, which gives me KO status if that condition matches. My condition is WorkflowFailed = True OR count > 8 then status will be failed. For one of the above condition WorkflowFailed = True I have added…
Peter
  • 855
  • 2
  • 15
  • 35
5
votes
1 answer

Gatling Throttle holdfor not working

New to Gatling world but an experienced Loadrunner user. I created a sample simulation to run two scenarios, each with 10 users and want to run it for 10 minutes. Below is what I have in my setUp function. But each time I run the simulation, it only…
CyberNinja
  • 93
  • 3
  • 8
5
votes
1 answer

Get only the response body in gatling

I need to parse an id from the response body and send it in the next request body in gatling for session based users. If anyone has an idea about that, please share it. I have used the .check(regex()) and .saveAs method, but that saves the data in…
megamind
  • 627
  • 9
  • 17
5
votes
2 answers

Gatling report description customization

The only global custom text on Gatling report is Simulation class name. It appears in the upper right corner of the report. How can I put some custom message (short) without changing the name of the Simulation class?
aholub7x
  • 808
  • 12
  • 26