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
0 answers

How to execute Scenarios in Sequence in Gatling?

I have two scenarios 1st "getAssets" scenario will fetch all asset IDs and save it in a list, 2nd scenario "fetchMetadata" will iterate those IDs. I have to execute "getAssets" scenario only once to fetch all the IDs, and "fetchMetadata" scenario…
Peter
  • 855
  • 2
  • 15
  • 35
6
votes
1 answer

How to start spring-boot application before running integration test

I am using Gatling plugin in my spring-boot application to do performance tests of the REST APIs exposed as part of the application hence need my application to be up before the gatling tests runs. Since Gatling execution is associated to…
user762421
  • 503
  • 1
  • 12
  • 24
6
votes
2 answers

Gatling - execute scenarios sequentialy

When I run code like: setUp( scenario1.inject(constantUsersPerSec(1) during (1 second)), scenario2.inject(constantUsersPerSec(1) during (1 second)) ).protocol() Both scenarios are started at once. What need to be changed to run it one by…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
6
votes
1 answer

Gatling scenario with 10 requests per hour (less that 1 rps)

I need to write Gatling scenario that will mimic real users interaction. It's supposed to issue some requests occasionally, e.g. 10 per hour per user (total 20 users). From what I see in the docs, constantUsersPerSec accepts double but it's rounded…
Tvaroh
  • 6,645
  • 4
  • 51
  • 55
6
votes
2 answers

Scala - how to use variables in a multi-line string literal

I want to call value of 'myActionID' variable. How do I do that? If i pass static value like "actionId":1368201 to myActionID then it works, but If I use "actionId" : ${actionIdd} it gives error. Here's the relevant code: class LaunchWorkflow_Act…
Peter
  • 855
  • 2
  • 15
  • 35
6
votes
2 answers

Print correlation values on console in gatling

How can we print the values captured using saveAs("myValue") on the console of gatling, like we do System.out.println() in Java?
UmeshPathak
  • 145
  • 1
  • 2
  • 13
6
votes
1 answer

ssl - Error self signed certificate getting chain

I'm learning to use Gatling to test scenario I've been doing with guide from documentation here http://gatling.io/docs/2.1.7/http/recorder.html Because my to-be-tested scenario includes logging in with Google Account, it is rejected due to lack of…
necroface
  • 3,365
  • 10
  • 46
  • 70
6
votes
2 answers

How to overcome `The filename or extension is too long` error with Gradle in windows

Running gradlew gatlingRun in windows fails with below stacktrace, on a default app generated with below config in Jhipster { "generator-jhipster": { "baseName": "jhipster", "packageName": "com.mycompany.myapp", "packageFolder":…
Deepu
  • 1,241
  • 1
  • 11
  • 24
6
votes
2 answers

Programmatically execute Gatling tests

I want to use something like Cucumber JVM to drive performance tests written for Gatling. Ideally the Cucumber features would somehow build a scenario dynamically - probably reusing predefined chain objects similar to the method described in the…
SilentICE
  • 700
  • 8
  • 25
6
votes
1 answer

Gatling check for java.io.IOException: Remotely closed

While doing a test in gatling I get the following error java.io.IOException: Remotely closed which is expected (server cuts connection). How do I mark the test success or check for that exception?
kgm
  • 797
  • 6
  • 16
6
votes
2 answers

Getting Error : There is no simulation script. Please check that your scripts are in user-files/ simulations Press any key to continue . .

I am facing this problem, when executing gatling batch file using command prompt. GATLING_HOME is set to "G:\gatling-charts-highcharts-bundle-2.1.4" There is no simulation script. Please check that your scripts are in user-files/ simulations Press…
Chinya
  • 419
  • 1
  • 7
  • 18
6
votes
2 answers

Collect errors with Gatling?

In my long, but simple awesome Gatling simulation, I have few responses that ended with error 500. Is it possible to tell gatling to collect these error responses messages in a file during the simulation?
igr
  • 10,199
  • 13
  • 65
  • 111
6
votes
1 answer

Controlling requests per second and timeout threshold in Gatling

I am working on a Gatling simulation. For the life of me, I cannot get my code to reach 10000 requests per second. I have read the documentation and I keep messing with different methods and whatnot but my requests per second seems capped at 5000…
PhillipAMann
  • 887
  • 1
  • 10
  • 19
6
votes
1 answer

Usage of gatling feeders

I'm trying to use two gatling feeders for producing http post request data : First file contains some fields. One of them is a counter. With this value I'd like to add to my post body as far as lines from second feeder. For example…
N LAMY
  • 225
  • 1
  • 4
  • 14
6
votes
2 answers

Does Gatling provide a way to compare previously run tests

I've been running Gatling tests and I have a whole bunch of reports in the results folder. For example I have a report for 200 requests per second and one for 400 requests per second. Is there anyway to compare the reports against each other?
Alex
  • 852
  • 1
  • 10
  • 21