Questions tagged [scala-gatling]
426 questions
23
votes
3 answers
Gatling: How to display full HTTP response body in the console or print it into a file
I'm new to Gatling.
I could not find a simple complete example of how to see the full HTTP response body.
This is my simple example
class CreateNotecard extends Simulation {
val baseURL = "https://portal.apps.stg.bluescape.com"
val…

Vladimir
- 630
- 3
- 12
- 26
11
votes
5 answers
Alternative to Gatling
I’ve been having issues lately because my dependencies has been updated to use netty 4.1 and Gatling has not been updated for a while, and still work only on Netty 4.0.
Anybody knows any alternative to Gatling to create similar Simulations and…

paul
- 12,873
- 23
- 91
- 153
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
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
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
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
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
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
4
votes
1 answer
Gatling exec outside scenario scope - POST requests are not called
I am trying to write gatling performance test where I am using the before and after blocks of the Gatling Simulation to make one-time HTTP post requests against the service.
class MyTest extends Simulation {
// Some code here
//…

Saher Ahwal
- 9,015
- 32
- 84
- 152
4
votes
2 answers
object gatling is not a member of package io
I have an existing Gatling project with Scala that I'm executing using the command line (no IDE currently). I have a need to be able to reference another external project so I am attempting to use SBT along with it, but I cannot seem to get this…

Serberuss
- 2,247
- 4
- 22
- 40
4
votes
1 answer
Gatling: loop through all the entries in a feeder
I have a CSV file which has around 10K entries (request payloads for my session). I am using the built-in CSV feeder to loop through all of them in my request. But only the number of requests corresponding to number of users in the test is executed.…

ABS
- 61
- 2
- 10
4
votes
2 answers
How do you use Gatling's checkIf method?
Documented here, Gatling's checkIf method is intended for conditional checking. It's not available on ScenarioBuilder's fluent API but I can see it in the CheckSupport class. I have scoured the internet and cannot find a single example.
I'm using…

Robert Bain
- 9,113
- 8
- 44
- 63