Questions tagged [scala-gatling]

426 questions
0
votes
1 answer

Gatling for loop inside inject

I am new to Scala and Gatling so bear with me! I want to have a for loop inside inject where I can set how many times I want atOnceUsers()instead of just repeating the code x times, but this code is giving me an error so I was wondering if this way…
thatUser
  • 15
  • 3
0
votes
1 answer

Retrieving the response code or body to use as a condition to send another request within tryMax

I have this request that is querying my service which is inside of tryMax. The access token to authenticate a request expires every five minutes and is generated at the beginning of the simulation run as ${token} Is there a way within the tryMax…
Przemek Hendel
  • 60
  • 1
  • 10
0
votes
2 answers

Cannot run gatling test in IntelliJ

we have some load tests in gatling (written in Scala), we can run the test from command but cannot run/debug it in IntelliJ. in the IntelliJ, i don't see there is no green button(arrow) next to that class that I can click and run it; right click…
user468587
  • 4,799
  • 24
  • 67
  • 124
0
votes
1 answer

Can we stop the perf test in gatling automatically when we reach a certain limit of 504s?

Is it possible to stop the performance tests automatically when you reach a certain amount of 504s instead of running the tests fully? Is there any options available in Gatling to achieve this?
0
votes
1 answer

Setting Group status to OK when an attempt in tryMax block fails

I have a scenario using Groups to model actions on pages in my app. One requirement I have is to use a copy of production data in my simulations, but this data may have problems such as missing fields etc that are required for some actions. To…
James Warr
  • 2,552
  • 2
  • 7
  • 20
0
votes
1 answer

Getting 400 response in Gatling After Mapping whereas same service works correctly in SOAP UI

I am trying to map a working soap request to Gatling seems very basic but i keep getting 400 error in Gatling whereas i am getting 200 OK in SOAP UI Here is SOAP UI details :- Raw--> POST…
0
votes
2 answers

building request body from optional checks

I'm trying to model a scenario where an initial request will provide several different lists of Ids, then a later request needs to submit the values in these lists (if they exist) as part of it's JSON payload. None of the lists is guaranteed to be…
James Warr
  • 2,552
  • 2
  • 7
  • 20
0
votes
1 answer

Randomising eventId of Post body with random ${orgId} but getting error as The input was not valid

I am trying to generate a random eventid with orgId but getting this below error ,this error clearly states that input data to the event in invalid,when i change the evnet id to 1 ,code works fine ,only when i try to randomise it ,i am getting the…
0
votes
1 answer

how to get javascript variable value in GATLING

I have a response body and i need some spesific javascript value in that.(__processUniqueID) How i can do ? Gatling 2.3.1 version