Questions tagged [scala-gatling]

426 questions
2
votes
1 answer

Gatling load testing and running scenarios

I am looking to create three scenarios: The first scenario will run a bunch of GET requests for 30s The second and third scenarios will run in parallel and wait until the first is finished. I want the requests from the first scenario to be…
theartv
  • 35
  • 7
2
votes
1 answer

Failed to build request: No attribute named 'token' is defined in Gatling script

I convert HAR file to Gatling simulations script, but I have problem with extracting token from request header. After conversion I have the following code: import scala.concurrent.duration._ import io.gatling.core.Predef._ import…
Kubeusz
  • 25
  • 2
  • 5
2
votes
1 answer

Gatling Pebble Templating

I am having issues resolving the dot (.) notation of pebble templating in Gatling to retrieve attributes of variables, such as Map key values. Here's an example of a session attribute that I've defined: session => session.set("location", Map("text"…
Justin Chao
  • 173
  • 1
  • 8
2
votes
1 answer

Use the value generated inside a Gatling Feeder of one request inside the feeder of a consequent request for the same user

I am using Gatling to test a system which expects 2 sequential Post requests say, R1 and R2. These Post requests have different Json request bodies but one common key "ID". So one user should execute R1-R2 in order and a new random ID should be…
Coder
  • 79
  • 2
  • 9
2
votes
1 answer

How to retrieve response headers in gatling and execute http call multiple times?

I'm trying to find a way to get response headers such as X-RateLimit-Limit, X-RateLimit-Remaining etc. from http call response. Not able to find from online resources or documentation, can someone help? I see these headers in console as I enabled…
anonymous-explorer
  • 365
  • 1
  • 12
  • 26
2
votes
1 answer

Gatling: Extracting multiple groups in .check(regex

I'am try to use single .check(regex to extract multiple values. Code below represent extracting 3 groups. val goToProduct = http("""GoTo_${product}""") .get("""${product}""") .headers(headers_0) .check(regex("""name="([\s\S]+?)" value="(.+)"…
2
votes
1 answer

How to append to a list variable in session

I'm new to Gatling and struggling with a basic task. I'm setting up two scenarios. First scenario: I have a list of values, I want to make a request for each value, append the response of the request to a result list. I want to use this result list…
2
votes
0 answers

Extract or get parameters from url in Gatling

In Gatling how do I proceed to extract or get and save the Url parameters from response body? I make a post request and as response body a I got a link with parameters (pstId & autId) that I would like to extract and save them: /**** HTTP Calls…
gerard talla
  • 165
  • 2
  • 3
  • 8
2
votes
1 answer

Gatling: Random Feeder POST request: not found: value email (Gatling 3.0.0)

**Randomized Load Testing with Gatling ** I want to test my built API for higher load, and therefore, I have to generate huge amount of random emails (I know there is currently no email-checking on the server, so I just create random strings). The…
2
votes
2 answers

header("Accept", "application/json;v=1") doesn't work in Gatling tests?

For some reason http("Update WishList") .put("/api/update/${id}") .header("Accept", "application/json;v=1") .body(ELFileBody("bodies.json")).asJSON .check(status.is(200)) causes > status.find.is(202), but actually found 406 But I know the service…
Lenar
  • 419
  • 4
  • 19
2
votes
3 answers

How to inject data from csv file in Gatling?

I have a problem with the implementation of Gatling scenario. It's on Scala DSL, maybe somebody already had this issue? The goal: we need to Inject data in out scenario. Basically, we have - our page http://ourPage.com/ like the root for all…
Mykola Rudenko
  • 196
  • 2
  • 9
2
votes
1 answer

sun.security.validator.ValidatorException: PKIX path building failed:

I'm trying to implement gatling for a my project using gradle, I'm referring this blog to implement the same, it works very fine if I try to implement it as a individual project in intellij as per given in the blog. But if I try to integrate the…
tyro
  • 765
  • 2
  • 13
  • 34
2
votes
3 answers

Gatling: How to solve "cannot find impicit parameter"?

I have this Gatling Simulation: package package_name import io.gatling.core.Predef._ import io.gatling.http.Predef._ class PerformanceTest extends Simulation { private val httpConfiguration = http .baseURL(Configuration.baseUrl) …
Franz Wimmer
  • 1,477
  • 3
  • 20
  • 38
2
votes
1 answer

Run gatling project from an executable jar

I have a small Gatling project which I would like to package through sbt and then run on different Linux/Windows machines with different JVM parameters. I tried already the sbt package command but that didn't work out. Anyone has done something…
user134
  • 391
  • 2
  • 5
  • 15
2
votes
1 answer

How to get per scenario reports from parameterized simulations in gatling?

I'm trying to test a single API that internally does different things based on inputs: country customer amount of items The following simulation is what I came up with: val countries = List("US", "CAN") val customerTypes = List("TYPE1",…
Dude Man
  • 23
  • 4