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
7
votes
1 answer

How to inject a constant number of users in Gatling?

It is not clear to me how I can control a closed workload model in Gatling. If I use constantConcurrentUsers, like this: myScenario.inject( constantConcurrentUsers(40) during (2 minutes) ) I thought it meant the number of active users would be…
zslim
  • 441
  • 7
  • 14
7
votes
0 answers

Gatling checkIf syntax

A legacy app has the below working Gatling test private val getUserByTuid = scenario("GetActiveUserInfoWrapper") .feed(users.toArray.circular) .exec( http("GET /v1/foo/{id}") .get("/v1/foo/${id}") …
fred
  • 1,812
  • 3
  • 37
  • 57
7
votes
0 answers

How to get a value from response body in Gatling?

I've tried different approaches that I've found on Gatling.io, but my problem still persists. There's an API which returns a short response in JSON format when I send a GET request. GET…
Sinisa Brzak
  • 123
  • 1
  • 1
  • 8
7
votes
1 answer

Request timeout in Gatling

I am using maven to run my Gatling (Scala) performance test. It gives me request timeout issue when I increase user from 100 to 150. If I set the number of user to 300, then I get following error in simulation log. // Gatling scenario injection val…
The automator
  • 87
  • 1
  • 1
  • 8
7
votes
4 answers

How to find the difference/mismatch between two JSON file?

I have two json files, one is expected json and the another one is the result of GET API call. I need to compare and find out the mismatch in the file. Expected Json: { "array": [ 1, 2, 3 ], "boolean": true, "null": null, …
7
votes
1 answer

Load performance testing with Gatling and Content-Type

I am using gatling for load performance testing on a brand new API. It seems fairly easy and well documented but I am facing an issue as simple as POST a request with Content-Type set to 'application/vnd.api+json' on the Header. All works well when…
Sofia
  • 71
  • 2
7
votes
2 answers

Running Gatling from container

I am using denvazh/gatling container and everything works well except one thing i try to pass list of simulations like this: Attaching to gatling gatling_1 | GATLING_HOME is set to /opt/gatling gatling_1 | Choose a simulation number: gatling_1 | …
user6329667
  • 447
  • 1
  • 5
  • 16
7
votes
2 answers

POST request in Gatling

I'm running into an issue with the POST of a pdf file. After recording a HAR file in Gatling 2.1.7, here's what I have: .exec(http("request_10") …
Chuck
  • 998
  • 8
  • 17
  • 30
7
votes
2 answers

Download all dependencies, plugin dependencies, compilers, etc. with Maven?

I'm baking a Docker image which runs a Maven task at runtime. It looks kind of like this: ADD pom.xml /srv ADD src /srv/src WORKDIR /srv RUN mvn dependencies:go-offline scala:testCompile At runtime, I'm running mvn gatling:execute to run a load…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
7
votes
2 answers

How do I increment a UUID gatling feeder

I am new to gatling and scala, so this is definitely a n00b question but I am struggling to figure this out. I found this great blog post to be able to use a UUID feeder http://www.andrewgorton.uk/blog/gatling-uuid-feeder/ object UuidFeeder { …
namesake
  • 325
  • 1
  • 4
  • 8
7
votes
1 answer

How to use saved variable values outside of gatling scenario in scala file

One of gatling get request is giving multiple string values and I am saving them using saveAs like this: val scn = scenario("ReadLogs") .exec(http("logEvent") .get("""/xyz/abc""") …
Viral Jain
  • 83
  • 1
  • 1
  • 6
7
votes
4 answers

How to check if an attribute is present in Gatling/Scala

I would think this is probably easy to do, but I really don't know Scala at all. I have a scenario where a first time user will log in and see a page, then if they log in again they won't see this page. So the best I've come up with so far is…
rozner
  • 580
  • 2
  • 5
  • 11
7
votes
2 answers

Failing maven-build when Gatling-test has too high fail-percentage

I am trying to run a simple performance-test through Gatling. I use maven to run the process. In order to easely pick up when changes in the code breaks my gatling-tests I want the maven-build to fail. I have made sure to add…
Etse
  • 1,235
  • 1
  • 15
  • 28
6
votes
3 answers

Gatling Error: Could not find or load main class Engine

I installed the latest IntelliJ idea, latest maven 3.6.3, Java 1.8, set the JAVA_HOME / JRE_HOME env variables. Then generated a Gatling project using mvn archetype:generate -Dfilter=gatling. In summary, I followed the instruction here. I have…
Rasika
  • 312
  • 1
  • 7
  • 19
6
votes
2 answers

JMeter : Generating the default html report not possible with Taurus

I am currently making a POC with Taurus tool. In our company we use both JMeter and Gatling for now. I was able to obtain in my tests the Gatling report without any complex configuration but it was not possible with JMeter to obtain its…
Loc Ann
  • 455
  • 6
  • 24