Questions tagged [scala-gatling]
426 questions
3
votes
0 answers
Using Xpath to store value in Gatling
I'm trying to store the value of a uuid "EnquiryId" from an XML response. I believe the standard approach is to use xpath but I'm not using it correctly and receiving "java.util.NoSuchElementException: key not found: enquiryId"
Response…

WillBroadbent
- 804
- 2
- 8
- 22
3
votes
2 answers
Error in Gatling maven plugin
I´m using gatling-maven-plugin to run some Performance test.
I just follow the official documentation http://gatling.io/docs/2.2/extensions/maven_plugin/
I have this configuration
…

paul
- 12,873
- 23
- 91
- 153
2
votes
2 answers
Error not found: object play in Gradle for Gatling Scala
Trying to import the Play Json Library with Gradle 7 to be used in Gatling Scala code plugin 3.8.3.2. It seems to be the finest tool to work Json in this context. I get this error not found: object play at the line where the import…

RicHincapie
- 3,275
- 1
- 18
- 30
2
votes
1 answer
Getting j.i.IOException: Premature close in Gatling
I have a few GET endpoints related to downloading files from the server. And when we try to simulate the download for smaller size it works perfectly fine ex : 500MB but for 1GB above files it starts the download in gatling and after some time it…

Lusitha
- 330
- 1
- 3
- 19
2
votes
1 answer
How to get separate Gatling report for each step of the simulation?
I have the ramp up test that increases the amount of users every time in Gatling.
For the user's injections I am using these methods:
setUp(
Test.inject(incrementConcurrentUsers(1)
.times(4)
.eachLevelLasting(20)
.separatedByRampsLasting(1)
…

Iryna
- 43
- 5
2
votes
1 answer
Gatling tryMax reporting error even if the retry was successful
I have following scenario
.tryMax(10) {
pause(200 millis)
exec(
http("monitor status")
.get("/${orderId}")
.headers(sentHeaders)
.check(status is 200)
.check(jsonPath("$.status").is("SUCCESSFUL"))
…

isADon
- 3,433
- 11
- 35
- 49
2
votes
1 answer
How to Save a Response Body and Use It Throughout the Gatling Execution
I am using 2 API calls in my Gatling simulation. One API returns the authentication token for the second, so I need to call the token generation API call only once during the execution and use it's generated token for the second API throughout the…

Ash Raf
- 99
- 1
- 1
- 7
2
votes
1 answer
Gatling 3.3.1/Scala: answer validation block doesnt grab answer that i need to recieve
try to test a program based on socket.io technology, i try to make sequence of "exec" blocks, which contains "sendText" function and answer validation.
.exec(
ws("write first number")
.sendText("""424["/answer/Session", {"message":"message…

Nadiia Pryshchepa
- 23
- 3
2
votes
1 answer
How to achieve constant concurrent active users in closed model using Gatling?
My question is somehow related to this and this , but somehow doesn't really answer my question.
My test case is pretty simple, I need to generate constant active concurrent users (e.g. 10 concurrent users) constantly over a period of time (e.g. 60…

keylogger
- 822
- 3
- 19
- 39
2
votes
0 answers
Best way to simulate failing a Group
I have a scenario I'm trying to simulate and I'm not sure about the best / most idiomatic way to go about it.
The app I'm working with generates some very large reports that take a long time to execute. For our primary web client, we start the…

James Warr
- 2,552
- 2
- 7
- 20
2
votes
2 answers
Gatling not storing value in session
I am using sessions in gatling to store values, as shown below
exec(session => {
val id = Instant.now.toEpochMilli.toString + scala.util.Random.nextInt(1000).toString
session.set("STARTED_PROCESS_ID",id)
//Store the id…

Suraj Menon
- 1,486
- 3
- 28
- 50
2
votes
2 answers
Run Gatling SBT without generating reports
Is it possible to run the gatling-sbt plugin without generating the reports at the end?
I can't find anything that mentions this in the documentation or elsewhere online.

Mark Tickner
- 1,023
- 2
- 15
- 26
2
votes
1 answer
Create a gatling custom feeder for large json data files
I am new to Gatling and Scala and I am trying to create a test that has a custom 'feeder' which would allow each load test thread to use (and reuse) one of about 250 json data files as a post payload.
Each post payload file has 1000 records of this…

chrismead
- 2,163
- 3
- 24
- 36
2
votes
0 answers
Gatling reporting higher response time for the first request group in a scenario
I am using id "com.github.lkishalmi.gatling" version "3.2.9" to run my gatling performance tests
below is my simulation code
print("TIME "+System.currentTimeMillis())
val httpConf = http.baseUrl("http://abc.io")
val httpConf2 = http.baseUrl("…

user2973475
- 357
- 1
- 3
- 12
2
votes
3 answers
Gatling update file used to feed simulation within feed() before call
I need to update .csv file containing some ids used within Gatling simulation, as I need to create data beforehand. I tried to update that file within before() call however it won't work. Lazy evaluation won't work either.
before {
…

enzor
- 47
- 4