Questions tagged [gatling]

Gatling is an open-source load testing framework based on Scala, Akka and Netty.

Gatling is an open-source stress tool with:

  • High performances
  • Simple concepts
  • A DSL to describe scenarios
  • HTTP support
  • A scenario recorder
  • Meaningful reports

Gatling is built upon :

  • Async Http Client and Netty for non-blocking HTTP;
  • Akka for actions (requests, pauses, assertions, etc...) modeling and orchestration;
  • Scala interpreter for scripting.

Links:

1684 questions
0
votes
1 answer

deployment issues for phoenix app using gatling and distillery to deploy to a VPS

I'm using the below command on my VPS to deploy an app I recently put together. sudo -E mix gatling.deploy kegcopr_api However, the deployment errors out when it tries to start the app as a service. $ mix release --warnings-as-errors --env=prod…
ipatch
  • 3,933
  • 8
  • 60
  • 99
0
votes
1 answer

Gatling Performance - flushHttpCache

New to Gatling and trying to understand how to get "exec(flushHttpCache)" incorporated into my script as I am trying to stop redirects from occurring as these will skew my results. I have: val getStartPage = feed(feeder).exec(http("Test start page…
user1079925
  • 541
  • 2
  • 8
  • 20
0
votes
1 answer

Could not find or load main class io.gatling.recorder.GatlingRecorder

I have set GATLING_HOME = "F:\gatling\" in environment variable but still i'm getting below issue. Could not find or load main class io.gatling.recorder.GatlingRecorder How to resolve this issue. Thanks.
Eswaran
  • 33
  • 2
  • 6
0
votes
0 answers

Gatling InjectionStopped expectedCount=1400

I'm integration a spring boot application and gatling, in order to provide a web ui to users and dynamically change execution params like simulation duration, users and the scala script to execute. All simulation scripts have a feeder, a csv…
Luis Rivera
  • 68
  • 2
  • 10
0
votes
1 answer

Exception in thread "main" java.lang.NumberFormatException: For input string: " "

I am attempting to access two string values within a simulation.log file and convert the two values to a type long. This is an example of the log file: Log Fille When I attempt to access the strings it is telling myself the are empty values. The…
0
votes
1 answer

Not able to extract values in Gatling

I have written 2 sets of Gatling code. My usecase in example 1 is make a post call. extract a value. make a get call and use the extracted value in header. My usecase in example 2 is make a post call, extract a value, make a get call use the…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
0
votes
1 answer

How to Extract vector in session?

I have saved vector in session and I want to use random value from the vector but dont know how to extract value in session. Errors: 'httpRequest-6' failed to execute: Vector(437420, 443940, 443932, 437437, 443981, 443956, 443973, 443915, 437445)…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
1 answer

Is it possible to add a classname to each test case in assertion.xml using gatling?

I want to use the gatling junit report to upload it automatically in Testlink using Hudson but there is no classname tag in the file so I can't link it to a test case. Is there any way to add it?
Kamal ALLALI
  • 59
  • 1
  • 13
0
votes
1 answer

Parameterized simulation in Gatling load tests

I want to be able to pass parameters to a Gatling Simulation. I have tried this, however it is failing. (The issue seems to be due to inner class) object PerfTestManager extends App { run("trymain", 10, 2, 3); def run(dcName: String,…
Asad Iqbal
  • 3,241
  • 4
  • 32
  • 52
0
votes
1 answer

There is 'No' data in generated .csv file from Gatling

I am able to generate csv file from below code but there is no data in it (it has data cross-checked with sqlYog with same query). It only prints "Asset Ids" in one column and throws ClassCastException. Can anyone help me to solve this?…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
1 answer

Writing a Gatling custom feeder from JSON with stubbed values

How do I write a custom Gatling feeder based off a JSON file that has certain values that are stubbed and need to be replaced before being sent? For example {"payloads":[ {"groupId":"", "epoch":
PnzrDrgoon
  • 43
  • 1
  • 7
0
votes
1 answer

check on json response (Scala)

I want to do a sanity-check on the response I get from a request and verify that element1 is 2017 in the below response: body= { "id" : { "element1": "2017", "element2": "ST", "nivaa": "land", "navn": "element3", "nr": "0" }, How do I do…
Magnus Jensen
  • 905
  • 6
  • 36
  • 73
0
votes
1 answer

Gatling - changed fields in simulation.log

Previously simulation log had 4 long values (old gatling documentation): 1. first byte sent timestamp 2. last byte sent timestamp 3. first byte received timestamp 4. last byte received timestamp What had been calculated to: response time (in ms)…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
0
votes
1 answer

Failed assertions inside for loop is not failing the Gatling scenario

I'm trying to validate whether error messages returned by API are proper or not. So, I stored all local error message strings in HashMap errorMessage .doIf(errorMessages.size()>1) { exec(session => { …
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
0
votes
2 answers

type mismatch error is shown while passing "tName" in stringbody

val tName = System.getProperty("tName", "asdflkjh") I am planning to make "tName" dynamic but it prints "$tName" in output instead of "asdflkjh". .body(StringBody("""{"objectId":${assetid},"objectType":"m-asset","name1":…
Peter
  • 855
  • 2
  • 15
  • 35