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

Gatling Generate OAuth2.0 token using callback URL not working

Here is my scenario. val header = Map( "Accept" -> """application/json""", "Content-Type" -> """application/x-www-form-urlencoded, charset=UTF-8""") val auth_token = scenario("POST Authentication") .exec( http("POST…
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
0
votes
1 answer

Gatling: How do you pass userdefined variables (values) in scala script?

I am creating Gatling script for create new user. I am passing user defined values (fName = "newuser" , emailDomain = "@perftestorg.com") into the next request. But, in response it didnot return the defined values and timestamp is also not printed.…
0
votes
1 answer

Data from feeder not available in scenario

I have a problem where it looks like data from a feeder isn't added to the session. I'm testing a system where a user has a role (i.e. user or admin) and I need to perform various tests depending on the role. Following the advanced tutorial I have…
Martin
  • 5,119
  • 3
  • 18
  • 16
0
votes
3 answers

How to delete old subfolder from maven target folder on jenkins?

I use gatling in a separate maven project on Jenkins. Gatling creates reports in the target folder on jenkins. How can I delete the generated reports except the last 15? I try to do it with the maven-invoker-plugin and a beanshell script. Is there a…
Hans Holzbart
  • 1,113
  • 1
  • 15
  • 22
0
votes
1 answer

I am getting this error while running my gattling code [at io.gatling.http.protocol.HttpProtocol$.apply(HttpProtocol.scala:71)]

import io.gatling.core.Predef._ import io.gatling.http.Predef._ import scala.concurrent.duration._ class Simulations extends Simulation { def test(){ val httpConf = http…
0
votes
0 answers

Defining SOAP requests with optional fields in Gatling

I'm testing a SOAP service that accepts a request with an optional field. Below is a request body snippet to illustrate.
Thomas Kåsene
  • 5,301
  • 3
  • 18
  • 30
0
votes
1 answer

Single exec with multiple WebSocket requests

In my Gatling simulation, I have a list of WebSocket requests that are currently called one after another: .exec(ws("1").sendText("1").check("...")) .exec(ws("2").sendText("2").check("...")) .exec(ws("3").sendText("3").check("...")) The problem…
xeroqu
  • 425
  • 5
  • 14
0
votes
1 answer

How to pass values instead of Vector in foreach loop?

My Reponse is: [ {"id":106455,"assetId":482282,"masterKeyframeId":157060,"closed":false}, {"id":106661,"assetId":502174,"masterKeyframeId":169193,"closed":false} {.....and so many...} ] I have fetched "assetId" and "masterKeyframeId" correctly…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
2 answers

How to resolve type mismatch error in Gatling?

I am getting error while passing session => in .formParam of "Login" request. Can anyone help? Thanks :-) Here is my script, // Random user login logout import scala.concurrent.duration._ import io.gatling.core.Predef._ import…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
2 answers

Unable to pass Saved values in formParam of same request

I have saved 'current_account_id' and 'current_workspace_id' in below code. Want to use those IDs in next request as I have to make it dynamic so I replaced "505520" with "${accountID}" and "505519" with "${workspaceID}" but it doesnt work and…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
1 answer

How to set counter in PUT request?

I have two URLs 1st which is BaseURL creates users and 2nd which is used to set password to every users which is in asLongAs loop. I have issue in setting "counter" in 2nd url request which is "Change_Password". It throws below error, 9425…
Peter
  • 855
  • 2
  • 15
  • 35
0
votes
2 answers

Why is this Gatling job not running sequentially?

What I am trying to do is: Make a GET call to get a list of id For all those ids make a series of another GET calls Here is my code for that: /** * Created by pbane3 on 11/10/16. */ import io.gatling.core.Predef._ import…
Pritam Banerjee
  • 17,953
  • 10
  • 93
  • 108
0
votes
2 answers

Gatling convert Json array to Map

I have json such as ["123","123a","12c3","1f23","e123","r123"] as response from rest server. I want to parse this json as Collection and iterate over it and make exec request over each element in it such as : SERVER + "/get?param=${el}" where el…
Jordan Borisov
  • 1,603
  • 6
  • 34
  • 69
0
votes
1 answer

How to get a concatenated String of values from JSON response in Gatling?

Hi I am getting back a response like this in Gatling Get call: [ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter", "lastName":"Jones"} ] I want the firstnames to be concatenated in a comma…
Pritam Banerjee
  • 17,953
  • 10
  • 93
  • 108
0
votes
1 answer

How can I elminated warnings in Gatling ReponseProcessor

I have some code in my scenario such as .check(status.is(200), jsonPath("$['resultData'][*]['@contentType']").findAll.saveAs("resultData")) .check(status.is(500), jsonPath("$['processingError']").find.saveAs("processingError")) but I keep getting…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30