Questions tagged [gatling-plugin]

59 questions
5
votes
2 answers

karate-gatling: how to resolve java heap space OutOfMemoryError?

Currently I'm trying to run our functional tests (about 300 requests) with 10 users in parallel using gatling-plugin mvn clean test-compile gatling:test -Dkarate.env=test with the following .mvn/jvm.config local maven options in the project…
beloyar
  • 247
  • 3
  • 11
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
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
3
votes
0 answers

Gatling test for async API

I've an API endpoint that accepts three APIs like the followings: POST /runGraph => to start a job GET /getProject => get status of a job POST /runGraphResult => will give job result this is what I'm currently doing with…
bachr
  • 5,780
  • 12
  • 57
  • 92
3
votes
1 answer

Gatling request body as bytearray

val scn = scenario("gatling test"). feed(circularfeeder.circular) .exec(http("request") .post(endpoint) .header("Content-Type", "application/json") .header("Accept-Encoding", "charset=UTF-8") …
Harish
  • 565
  • 1
  • 12
  • 34
3
votes
1 answer

Karate-Gatling: One request is not recorded

One request of rampUsers() is not recorded. Eg. when I do a create.inject(rampUsers(10) during (5 seconds)).protocols(protocol) Simulation mock.CatsKarateSimulation…
Yu Xi Lim
  • 99
  • 3
3
votes
1 answer

Setup Gatling tests to limit by number of requests

So, I've written a few Gatling tests and know how to write test setup for a max duration. setUp(testScenario.inject(atOnceUsers(3))).maxDuration(5 minutes) Now, I want to achieve something along…
Viv
  • 1,706
  • 1
  • 18
  • 27
3
votes
3 answers

Send random request with Gatling

I have a file with a Json request bodies in a file. I'd like to benchmark a web sending a constant number of requests per second, using the constantUsersPerSec(..). However, every time a request is sent, I would like it to be taken from a list of…
Michael P
  • 2,017
  • 3
  • 25
  • 33
3
votes
2 answers

compilation error during gatling load test

I'm trying to write a simulation and i want to be able to run the simulation. I get an error while trying to $mvn gatling:execute. My pom has the following dependencies: io.gatling
Harinya
  • 181
  • 1
  • 4
  • 18
2
votes
1 answer

Gatling 3.3.1/Scala: answer validation block doesnt grab answer that i need to recieve

try to test a program based on socket.io technology, i try to make sequence of "exec" blocks, which contains "sendText" function and answer validation. .exec( ws("write first number") .sendText("""424["/answer/Session", {"message":"message…
2
votes
2 answers

Run Gatling SBT without generating reports

Is it possible to run the gatling-sbt plugin without generating the reports at the end? I can't find anything that mentions this in the documentation or elsewhere online.
Mark Tickner
  • 1,023
  • 2
  • 15
  • 26
2
votes
0 answers

Gatling reporting higher response time for the first request group in a scenario

I am using id "com.github.lkishalmi.gatling" version "3.2.9" to run my gatling performance tests below is my simulation code print("TIME "+System.currentTimeMillis()) val httpConf = http.baseUrl("http://abc.io") val httpConf2 = http.baseUrl("…
user2973475
  • 357
  • 1
  • 3
  • 12
2
votes
1 answer

Karate-Gatling: Callonce does not run

I have a feature file that require login credentials before testing can happen. In Karate, I added a callonce read(login.feature) so that the login will only happen once and the credentials can be saved in Karate. However when I run the same feature…
Yu Xi Lim
  • 99
  • 3
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
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
1
2 3 4