Questions tagged [gatling]
Gatling is an open-source load testing framework based on Scala, Akka and Netty.
1,529
questions
0
votes
0
answers
25
views
Reason for peculiar / descending triangle latency spike pattern during load tests
I am having a hard time to identify the underlying issue for the following latency pattern for the max percentile of my application:
This is a gatling chart that shows 4 minutes of load testing. The ...
0
votes
1
answer
34
views
Gatling recording is not passing required cookie to each get request
I've recorded a test using the Gatling recorder. But at each .get request the script redirects to the home page/base url because the cookie isn't being passed. How can I save the cookie then pass it ...
-1
votes
2
answers
34
views
Gatling scala: Check that the status code belongs to a list
For a scenario I want to check that status code of the response belongs to 200-209 or 304 or 404.
I tried the following but apparently it's not supported. And I can't find my use case in the docs.
...
0
votes
1
answer
21
views
How to save a .get Gatling response to a file
I've recorded a script of a web application using the Gatling recorder. I would like to save the responses from the .get calls to a file to verify the responses. I've done plenty of searches but I ...
0
votes
1
answer
29
views
Gatling. What would be the best way to pass feeder data to other functions?
I'm trying to write a load test for service.
I want to build DeliveryObjects and publish them, each delivery must have a unique id.
The problem I encounter is that I cant pass variables from the ...
0
votes
1
answer
16
views
Gatling report displaying incorrect group response time
Ran a load with 100 concurrent users for 1:30hr. The mean response times for the group 'Login Page' are higher than the mean response times of individual requests. How the group times are calculated ...
0
votes
0
answers
33
views
Get response time from Gatling after reading message from a Kafka queue
I have an application in which there is an https service that receives a message and there are a few microservices that process this message and at the end the message is put into a Kafka queue.
I ...
0
votes
0
answers
14
views
How to send messages to aws eventbridge from gatling?
I am trying to load test my aws eventbridge using gatling. I wanted to know whether it is possible to send messages to the eventbrdige through gatling.
0
votes
1
answer
22
views
Gatling execute call in for-each loop using values from list stored in session
The point is to make call to service and collect all taxonomies id and no matter where to store them(Could be session or maybe java List. For now storing it in session because didnt find a way to ...
0
votes
0
answers
31
views
Gatling: Nullpointer ctx exception when polling
I have a scenario in a Gatling simulation that polls numerous endpoints as a background task. The poll mentods are provided with names as per the docs. And there is a command to stop polling at the ...
-1
votes
0
answers
12
views
Business Logic Validation using Gatling
Required a guidance on best way to create Gatling script for validation of bellow mentioned business condition:
STEP 1:user add a product to cart.
STEP 2:validate 'Add Cart' button is disabled.
STEP 3:...
0
votes
1
answer
47
views
Gatling: Enable runMultipleSimulations
I have 30 simulations, and I don't want to crumble all of them into a single simulation file. So I created two files, Simulation1.scala and Simulation2.
The problem is when I try to run the command ...
0
votes
0
answers
24
views
Load test maximum list of parameters that an API can handle
I want to write a load test for a Spring Boot API that lists query parameters. I want to ramp up parameters until I reach the maximum. I want to determine how many request parameters (list) the API ...
0
votes
1
answer
21
views
Is there a way to distinguish between 2XX and 304 responses in Gatling and show it in the report?
Is there a way to distinguish between 2XX and 304 responses in Gatling and show it in the report?
I added this to my http request following the documentation, but I don't see a difference running it ...
0
votes
1
answer
31
views
Gatling Frontline incrementConcurrentUsers query - do aws auto-scaling testing on Microservice
I will appreciate your advice here:
I am using Gatling as a performance tool.
I need to test (on AWS account) Microservice including auto-scaling configuration
in that case, I try to do something ...
0
votes
1
answer
42
views
Use feeder next 10 results and repeat the request 10 times in Gatling
I am using Gatling 3.6.1 and I am trying to repeat the request 10 times for the next 10 products from the feeder file. This is what I tried:
feed(products, 10)
.repeat(10, "index") {
...
0
votes
1
answer
35
views
Gatling Parameter value is getting Print in some unknown format
I am running below Script which is running fine in Gatling However its printing in format of some(value) and I am not getting why.it should print like 123456 but its printing some(123456)
def Getdata()...
0
votes
1
answer
89
views
Execute parallel requests in Gatling
I am trying to model a Use-Case in Gatling, in which I need the repeat()-method to execute each iteration in parallel, instead of sequentially like this:
scenario("Scenario")
.exec(...
-1
votes
1
answer
36
views
Gatling feed an ArrayList of random strings
I have gatling script to send HTTP request with an array of 10,000 email addresses, the JSON body is like this one:
{
"userIds": [
"user1@paragonia.com",
"user2@...
0
votes
1
answer
41
views
How can I use a Session attribute saved from a Check in an SSE request in Gatling?
See working Java code at bottom.
I'm trying to create an SSE connection testing scenario that uses a client ID that is the response to a previous REST POST call. Here's the Scala code:
package ...
0
votes
1
answer
23
views
How to provide unique auth in Gatling to each virtual user (java)?
I am trying to get a simulation going where each virtual user in Gatling has a unique login/auth and does a bunch of actions that I have recorded and coded up. But I'm struggling to setup the ...
0
votes
0
answers
13
views
Running an arbitrary number of requests sequentially with Gatling test tool (3.7.6)
I'm using a Gatling as a integration tool in a small Java program. The program take an arbitrary number of files where the request and checks are defined, it creates the appropriate scenarios and ...
2
votes
1
answer
66
views
Gatling session - get attribute as Long
I am a new in Scala and got some problems with casting from String to Long. I try to get Gatling session value as Long in request. Before in exec() part, I try to set the userId value
def setUserId(): ...
0
votes
0
answers
16
views
gatling graph up - constant - down
I create a scenario gatling Charge test
rampUserPerSec(rate: 0).to(10 * 3).during(Duration.OfSecond(360))
constantUsersPerSec(rate: 10 * 3 ).during((Duration.OfSecond(720))
rampUsersPerSec(rate: 10 * ...
0
votes
1
answer
28
views
failed to execute: No attribute named 'username' is defined - Gatling Java CSV
I'm trying to read a csv file using Gatling and Java but I get this error failed to execute: No attribute named 'username' is defined and am a bit confused as I'm trying to debug it and I can print ...
0
votes
0
answers
22
views
Gatling Scala - Replace substring in a array list of value
In Gatling (using Scala), I have extracted an array of value which I want to modify and use it in my subsequent request.
Post extraction, as part of modification, using .transform I tried replacing ...
0
votes
1
answer
42
views
How to chain doIfElse Scala Gatling
We're trying to migrate our Gatling tests from Scala to Java. We have a function that chains some execs and has a doIfElse between then. Attempting to add the same on Java affects the return type for ...
0
votes
1
answer
37
views
Gatling Test suite Java
We run our test in Jenkins from package where we have 10 classes. Each class represents one scenario.
At the end we have one graph trend where we have trends for all tests.
But when we try to add ...
0
votes
0
answers
47
views
How to convert ChainBuilder into ActionBuilder Gatling Scala
We're upgrading our Gatling version from Scala to Java. However, we have a few helper methods that use ChainBuiders. The Java class complains about it and asks for ActionBuilder instead. I'm not too ...
0
votes
1
answer
33
views
How can I parameterise information in Gatling scenarios
I need to send specific parameters to a scenario that is being reused multiple times with different payloads depending on the workflows. The following is the code that is to be reused:
var reqName = &...
0
votes
1
answer
32
views
Load testing in mac and redhat OS throwing j.n.SocketException: Too many open files
we are doing the large loading testing(50000TPS)using gatling, we are using Red Hat Enterprise Linux Server VM's for performing the testing.
Load testing is good with 500 TPS for single VM(4cpu and ...
0
votes
1
answer
212
views
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 ...
0
votes
0
answers
18
views
Gatling:If session exist attribute set the #{attribute} to real value, and if its null set #{attribute} to null, how can I do?
Our API sequence is A->B
1step: extract API A's discountPremuim and set it to session
.check(jsonPath("$[0].discountPremium").optional.saveAs("discountPremium"))
2step: API B’s ...
0
votes
1
answer
58
views
How do I have to format my feeder csv file, to inject a list of string elements into my JSON request in Gatling?
I am having trouble adding a list of string id's to my JSON request body! I tried many different formatting styles ... but could not figure out how to get this to work in Gatling, using the JavaDSL.
...
0
votes
1
answer
30
views
Cannot pass arguments using sbt to gatling simulation
Regarding to Gatling SBT execute a specific simulation topic is there any way to pass argument to simulation?
I've been trying passing command from any CLI like:
sbt -Dx=1 -Dy=2 -Dz=3 "gatling:...
0
votes
1
answer
41
views
Gatling feeder will crash when using the same feeder for multiple scenarios
I'm using the following feeder that generates two random UUIDs
Iterator<Map<String, Object>> postRequestDataFeeder =
Stream.generate((Supplier<Map<String, Object>>) () -> {...
0
votes
0
answers
21
views
How to integrate Gatling performance tests with the GitHub CI pipelines
I would like to integrate my performance tests written in Gatling with the Github CI so that we can run them on regular basis and make sure that performance is not degraded over time with the new ...
0
votes
1
answer
53
views
How do I perform a conditional action based on a response in Gatling?
I have a scenario which load tests a sample API . Now I want to store those failed accounts of the scenario and and put them back in the feeder. I have a global hash table where I want to store the ...
0
votes
1
answer
70
views
Gatling EL not getting replaced in ElFileBody
I'm very new to gatling performance test and i'm trying to write one simulation for our service.
I'm using gatling 3.7.6 version.
I have below request json for my post http method;
{
"id": ...
0
votes
1
answer
23
views
One client certificate per user in Gatling scenario?
I am trying to define a Gatling scenario using a different client certificate per user.
I am using Gatling 3.7.1. The hints (e.g. this one How to setup Gatling to use client certificates per virtual ...
0
votes
1
answer
47
views
how to check if string exist in list of strings in Gatling Scala
How to check if ponkipong is present in activeids using [Gatling] check - [Scala] ?
{
"activeids": [
"ironblossom",
"draw_on",
"ponkipong",
&...
0
votes
1
answer
22
views
maven command to compile specific folder from src
I am trying to compile the below set of code from scala folder alone to run my gatling test:
tried with below command:
mvn clean compiler:compile scala:testCompile gatling:test
it compiles the ...
0
votes
1
answer
59
views
How to print Gatling JMS request reply
I am new in gatling world and i tried to send messages to TIBCO EMS(Enterprise Message Service) using gatling JMS support. I was able to send the messages but i have no idea how can i print the ...
0
votes
1
answer
76
views
Gatling: Executor not accepting task when polling
I have a gatling scenario in which I need to poll a specific endpoint for the duration of the test. However when polling the request it results in an and illegal state exception with the error ...
0
votes
0
answers
57
views
Gatling - constant user for 1 minute and my script need to run for 30 minutes
I'm very new to gatling
my scope is i need to test few API's with constant hit by user in every 1 minute and this should be repeated for 30 minutes or 1hr or 24hrs
Every 1 minute 3 user need to hit my ...
0
votes
0
answers
27
views
Getting error in Gatling -> java.lang.ClassNotFoundException: nextgen.SetUpApplyFlowAndLottery
I am trying to upgrade from Gatling 3.5 to 3.7. I think I already did it
My steps to do the upgrade:
1- Changed some values in the pom.xml
2- Ran the command → mvn clean install
I did not get any ...
0
votes
1
answer
31
views
How to concatenate 2 values in StringBody in Gatling version 3.5.0
I need to concatenate 2 variables in StringBody in a Gatling script. If I type only one value for example:
"code":"${executionRef}",
"name":"${Groups}",
that ...
0
votes
0
answers
19
views
How do I inject users according to a dataset?
I am new for gatling. I have a CSV file which records the requests rate(or number of users). And I want to sent a specify number of requests to a website according to the CSV file, like 500 requests ...
0
votes
0
answers
33
views
Get metrics at a given point of my tomcat
I need hints to fix this or any others suggestions to get metrics at a given point from tomcat server evolving in a docker container. here is my current context/progress :
Im using Rancher to do a ...
0
votes
0
answers
19
views
Gatling encode value twice
I have a successful encoding as this:
.exec(http("request_ticket")
.post("https://xxx/")
.header("Authorization", "Basic xxx")
.headers(...