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

Gatling fails to login to the application

When I execute my script login to the application is successful. I get all the cookies which are then send with next requests (every request looks the same as in the browser), but next step fails. The step which fails is request “user”. I get 302…
user187205
  • 330
  • 1
  • 2
  • 16
0
votes
1 answer

Unattended run for Gatling

I generated a maven project for gatling using the archetype approach. When I run the Engine.scala file from eclipse I ask for input on which simulation to run. I added the property for the simulation class using the Gatling PropertiesBuilder but it…
n4rzul
  • 4,059
  • 7
  • 45
  • 64
0
votes
2 answers

Specify Java Location for Gatling

I am running Gatling on Centos server. The Server has Java 1.7 installed which is not supported by Gatling 2.2 and I am not allowed to update Java version. I was wondering if there was a way to specify java location in gatling configuration to run…
ParekhAbhishekN
  • 245
  • 3
  • 14
0
votes
2 answers

How to put json response in loop with condition?

I have parsed json response and saved it using .findAll(). What I want to do is, ignore keyframeId if value is '-1' else put keyframeId in .get() request with loop. I did some code but the value doesnt set in get() request and gives 'KO'. Here it…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
1 answer

Can gatling load test SQL database or MongoDB?

I need to make load testing on my persistent storages Postgres and MongoDB. I'm wondering if it is possible to do with gatling? Because as I see gating supports only http and jms out of the box.
corvax
  • 1,095
  • 1
  • 10
  • 35
0
votes
2 answers

Add counter which increases on every http request

I want to add one condition in below scenario. I would like to Exit from the scenario if(counter=8 or WorkflowStatus=true) Does anyone knows how to add a counter which increases on every request upto 8 times and exit after 8, and above condition if…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
1 answer

Gatling Pass TestCase ChainBuilder Array["TC01","TC02", ...] dynamically to Scenarios

I have written some logic to form a array of Gatling ChainBuilder Testcases as below def getTestCaseArray(rowNumberArray: ArrayBuffer[Int]): ArrayBuffer[ChainBuilder]={ // my logic inside which is working fine. } array = genereateTestCaseArray()…
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
0
votes
2 answers

How to fix Error injecting: io.gatling.mojo.GatlingMojo?

I am trying to run a gatling project using Maven from Git in Jenkins and getting the following error: [INFO] --- gatling-maven-plugin:2.2.0:execute (default-cli) @ gatling-training --- [WARNING] Error injecting:…
Pritam Banerjee
  • 17,953
  • 10
  • 93
  • 108
0
votes
2 answers

Gatling not logging request/response

Gatling is not logging anything (errors, request body, response body etc) even though I am using default logback.xml. Does anyone know what is missing?
CyberNinja
  • 93
  • 3
  • 8
0
votes
1 answer

Gatling :- Read Multiple JSON Payload from single file

I'm making many HTTP request with JSON Payload and I'm reading one file for every single request to get JSON Payload as below. postPayload1 = val postPayload = ElFileBody("Test_case1.json") val TC1 = feed(accountNumberFeeder1) …
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
0
votes
0 answers

How to fetch the custom header viz AO-7DEABF from the response in Gatling tool

I am looking for the syntax to fetch custom headers from the response. I am using Gatling tool for performance testing. I could find syntax's for JAVA and other language's, however, those are not working with the Gatling syntax.
siddhi
  • 1
0
votes
0 answers

Gatling - value check is not a member of io.gatling.http.request.builder.Http

Trying to capture jsession id from string jsessionid=an121kj533n232j53531314353.tomcat_17221212_1101 in Gatling 2.2.3 using the following function .check(regex(""jsessionid=\"(.*?).tomcat"").saveAs("jsessid")) getting following error during…
TechieStack
  • 11
  • 1
  • 4
0
votes
1 answer

How to migrate to Gatling 2.2 from 2.1.7

I'm not really good with Scala and I really want to love Gatling, but lack of documentation makes it really difficult. Here is the problem that I've encountered after trying to migrate to 2.2.0 version from 2.1.7: global - now requires…
Mikhail
  • 665
  • 4
  • 16
0
votes
1 answer

not connecting to web socket properly in gatling

I want to connect to a web socket through gatling. But it is not working. The socket listener does not get any messsage. The code is given below.Can anyone suggest the problem? Is there any recording option for websocket in gatling. the recorder…
megamind
  • 627
  • 9
  • 17
0
votes
1 answer

gatling inject user vs jmeter thread group

How do I match the jmeter thread group with gatling simulation setup inject user? lets say i'm trying to run 100 vuser for duration of 1 hour which loops forever during the test and ramps down after 1 hour without any thinktime for testing. I'm…
stncldx
  • 3
  • 2
1 2 3
99
100