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

Throws error when passing argument with space in JAVA_OPTS in Linux

I am passing command line parameters to gatling script. This works and executes my test in Windows operating system: set JAVA_OPTS="-DuserCount=2 -DflowRepeatCount=3 -DdefinitionId=102168 -DtestServerUrl=https://someURL…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
1 answer

Issue with Correlation using Gatling Performance Testing tool

I am new to Gatling From last 5 days, I am trying to capture below request but I am unable to correlate the below "sesskey" which will be used in throughout my whole flow : .feed(feeder) .exec(http("request_2") …
0
votes
1 answer

Dynamic header in gatling load test

I'm trying to dynamically generate headers for each request using a json feeder in gatling using the following code : import io.gatling.core.Predef._ import io.gatling.http.Predef._ import scala.concurrent.duration._ class LoadTest extends…
Mayur
  • 730
  • 8
  • 18
0
votes
0 answers

Getting constant pauses on a Gatling Scenario

Gatling noob here. I'm trying to work on a scenario which spreads across 10 minutes and fires an http request every 10 seconds. I have the below code but it seems to 'ignore' the pauses clause. Any ideas? Gatling version: 2.2.0 myScenario.inject( …
ravenblizzard
  • 326
  • 3
  • 12
0
votes
1 answer

Run multiple Gatling Simulations at same time

I want to run my multiple Gatling simulations at the same time from Gatling.bat. Please let me know how is it possible. Thanks in advance..
chetali
  • 21
  • 7
0
votes
1 answer

Gatling: How to print a regex matched string

I want to print a string saved through regex in Gatling. .check(regex("""<(.*)>""").find.saveAs("ViewState")) So I want to print ViewState value so that I can check what is saved in it. Please help.
chetali
  • 21
  • 7
0
votes
0 answers

Scala: Can multiple json check be in single check?

I am new in scala programming, please consider the scenario... .exec(http("request_7") .post("/test/listing") .headers(headers_12) .formParam("abcId", "${abcID}") .formParam("action_id", "100") .formParam("controller",…
Praveen
  • 300
  • 5
  • 15
0
votes
1 answer

Output Assertion Results Using Gatling

I have been working on Gatling to set up performance tests for REST services and have assertions setup but they do not output the result in the Reports. Have the below setup in the scala file. val scn = scenario(scenarioName) …
seetha
  • 1
  • 1
0
votes
1 answer

Load-testing in Orbeon - request generation

I've been trying to use Gatling to load-test our Orbeon servers. More specifically we want to know how many concurrent users the server can handle submitting forms. I've already captured the requests using Gatling (one request per form field that is…
krezy
  • 33
  • 6
0
votes
1 answer

Why doesn't Scala IDE recognise my Scala packages?

I have a project containing our Gatling performance tests. I've imported the Maven project into Scala IDE, and I can see that the project has a Scala nature. However, when I look at the package tree in the package explorer (it's located in…
Vincent
  • 4,876
  • 3
  • 44
  • 55
0
votes
1 answer

How can I check and save text from span element

I have been trying to get the text out of a span element without much success. using the following: .check(css("span[id='hostName']", "text").saveAs("__HOST"))) but it does not find the text. this is the html
niartseoj
  • 112
  • 7
0
votes
2 answers

How to write a custom feeder for gatling json?

I have a jsonurl which I want to read and it looks like this: > { > "elements": [ > { > "box": { > "x": 0, > "y": 0, > "width": 186, > "height": 10.526316 > }, > "type":…
shab
  • 989
  • 1
  • 15
  • 31
0
votes
1 answer

Gatling not able to write to graphite influxdb

I have some gatling test to write it into influxdb using graphite protocol. The tests run fine, not able to see the results sent to influx via graphite protocol. my gatling.conf file looks like below, data { writers = [graphite] } …
Sheik Mubaraq
  • 31
  • 1
  • 2
0
votes
1 answer

I want the index of each user in Gatling rampUsers

I have scenario I will run 10K times, and I would like each call to be different. How do I write a feeder that will simply return the numbers from 1 to 10000? (i'm very new to scala) Is there a way I can get some sort of index from rampUsers?
Amir Mehler
  • 4,140
  • 3
  • 27
  • 36
0
votes
1 answer

Cannot breakout of foreach loop in scala

i have this below code > .foreach("${plist}", "newshole") { > exec( > http("get the user id") > .get("${newshole}/jcr:content.1.json") > .headers(headers_2) > .check(bodyString.saveAs("Res1")) > …
shab
  • 989
  • 1
  • 15
  • 31
1 2 3
99
100