Questions tagged [scala-gatling]
426 questions
1
vote
1 answer
how to use feeder like this in gatling
i can use feeder like this
val feeder_global_2 = Iterator.continually(Map("time"->System.currentTimeMillis()))
var http_conf_api1424 = http.baseUrls("http://10.156.17.143:9327").disableCaching
val api1424 =…

rax
- 11
- 1
1
vote
1 answer
regex check and proceed next call
Iam new to gatling and scala.
I was trying to validate regex in galting-scala.
My scenario.
from the response capture (regex) X values, If available then execute step-ABC
If X value of component not found, ignore step_ABC

Kishor Chintala
- 13
- 4
1
vote
1 answer
getCookieValue returns an object
I`ve used method getCookieValue() for get cookie value from session, it returns an object io.gatling.http.action.cookie.GetCookieValueBuilder@2012cf26
.exec{session => {
val cookie = getCookieValue(CookieKey("CookieKey"))
…

Nazar Masliy
- 11
- 2
1
vote
1 answer
Gatling loop on multiple commands inside inject
My apologies for the redundancy, this is a continuation of my previous question here Gatling for loop inside inject. I realize I did not phrase my question correctly, resulting in a different answer.
I want to have a for loop inside an injection…

thatUser
- 15
- 3
1
vote
1 answer
How to setup ramp down time in gatling?
I have a jmeter scripts to ramp up 20 users over 20 minutes(1 user every minute) and hold for 30 minutes and ramp down 1 user per minute.
How do i achieve this in Gatling?
I tried below setting in gatling,
SAAPIBase.scn_SA_Auth.inject(rampUsers(20)…

Madasamy M
- 25
- 1
- 5
1
vote
1 answer
How to set up pauses with normal distribution in Gatling
How can I set up pauses in Gatling with normal distribution with mean and standard deviation
on Simulation level - which will apply to all requests
override scenario level pauses with other values for specific requests
I can't exactly figure it…

Michal
- 3,218
- 2
- 25
- 44
1
vote
1 answer
How to pass the values from one scenario to another scenario in gatling?
I have some end to end flow where I have to run a service and pass values to the next scenario. I can print the values inside the scenarios but not able to use them to next scenarios.
I tried to save the values using SaveAs
val scn_Token1 ={…

Madasamy M
- 25
- 1
- 5
1
vote
1 answer
Check value extracted with JSONPath and compare with regex using Gatling
Is there a way of doing something like this in Gatling:
scenario("Check UUID with regex")
.exec(http("Get UUID")
.get("http://myapp/api/v1/goal/a24e210c-0fc1-44a0-a5ca-9bd5d8d71916")
…

de.la.ru
- 2,994
- 1
- 27
- 32
1
vote
0 answers
java.util.NoSuchElementException: No attribute named is defined
I have a question please:
i would like to read multiple xml files (file1.xml, file2.xml....), for each file i read in memory then i edit and send request. for reading and editing its work fine without any problem, but when i send request:
//some…

PerfPower
- 11
- 2
1
vote
2 answers
How can I increment a counter in steps of 50?
I have the following code
package lts
import io.gatling.core.Predef._
import io.gatling.http.Predef._
class BankingSimulation extends BaseSimulation {
val paginateThroughCustomTransactionsView = scenario("Scenario 04: Paginate through custom…

Claudiu B
- 35
- 7
1
vote
1 answer
Gatling - How to use feeder in a post body which is using raw XML file
I need to use a raw xml file as body in one of my gatling script. in this how we can try feeder.
Tried including variable name in raw file. including feeder in scala code. this didn't worked.
this is the code in scala
val feeder =…

Karthik
- 25
- 5
1
vote
1 answer
Cannot implement .extraInfoExtractor in Gatling Script
I am trying to log extra response information in gatling result through, http.extraInfoExtractor. Below is my code, I am failing to execute the same, also mentioned the error. Please help.
Code :
package cloudnative
import…

user3101408
- 23
- 5
1
vote
1 answer
How to obtain virtual user id/details in gatling?
I am new to Gatling and Scala and I need your advice.
I would like to obtain load test for n-users. Each user have to send request for creating different accounts. This is obtained by sending json file with appropriate array of objects ('entries' in…

GULI
- 13
- 3
1
vote
0 answers
Need Equivalent gatling scala code from postman curl url
Need Equivalent gatling scala code from postman curl url
could you please just logically write a equivalent gatling scala code for below authentication request,first thing first is i need to get a auth request and its response using gatling scala…

Margaret real
- 329
- 1
- 6
- 14
1
vote
0 answers
Gatling simulation does not starts when it should
I am experience a new problem with my Gatling simulation. When I run it from IntelliJ locally, it starts and then waits for 90 seconds before starting the simulation. With TRACE, here is the console output:
16:57:07.171 [INFO ] i.g.h.e.HttpEngine…

Tech Newbie
- 51
- 1
- 5