Questions tagged [scala-gatling]

426 questions
4
votes
1 answer

How to manage concurrent users in Gatling?

I have to test a web application and I've been asked to test it with concurrent users over 10 minutes. I don't really know how to do it and if I can do it using Forever, Pace or something like this.
Miguel
  • 956
  • 6
  • 20
4
votes
2 answers

Send Authorization Token | Gatling

I am performance testing our Enterprise API using Gatling. While testing with "Postman" I used to pass following Headers: API Key Authorization Bearer Token It would be great if someone could help me: How can I pass "API-KEY" and "Authorization…
Sunil
  • 553
  • 1
  • 12
  • 30
3
votes
0 answers

scala using github repo as a libraryDependencies

I was facing one error while trying using RootProject I need to use gatling snapshot version which is 3.5.0-SNAPSHOT and to enable this I know two options:- using git clone and then sbt publishLocal finally using this jar as an unmanaged…
Divyanshu
  • 290
  • 2
  • 9
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

Gatling Need to run next scenario if previous scenario is passed using doIf

i am new to Scala and gatling. i need to run scenaio if previous scenario is passed using doIf. My code is: HttpRequest object CompanyProfileRequest { val check_company_profile: HttpRequestBuilder = http("Create Company …
Vikram Pathania
  • 873
  • 2
  • 8
  • 15
3
votes
1 answer

Use content of a tuple as variable session

I extracted from a previous response an Object of tuple with the following regex : .check(regex(""""idSc":(.{1,8}),"pasTemps":."codePasTemps":(.),"""").ofType[(String,String)].findAll.saveAs ("OBJECTS1")) …
Piixon
  • 31
  • 1
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
2 answers

Debugging with Gatling - println if status is 500

I am performance testing a Play! application which contains a number of GET/POST API's. I want to do some debugging as one single test is mysteriously failing out of hundreds (and it only fails when the whole lot is run). How do I conditionally add…
James Whiteley
  • 3,363
  • 1
  • 19
  • 46
3
votes
2 answers

Gatling Before and After HTTP requests not getting executed

I am writing a bunch of load tests on my ElasticSearch Index. I need to setup and teardown my index in the load test. Towards this I wrote this code before { println("going to setup index") scenario("SetupIndex") .exec( …
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
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
1 answer

How to capture gatling.io https / wss calls through fiddler?

I'm running gatling.io to load test my server, but I would like to be able to view the calls so I can debug portions of the script. I know I can have it write all the logs to the console, but viewing through fiddler is nicer.
CamHart
  • 3,825
  • 7
  • 33
  • 69
3
votes
0 answers

Best practices for sharing gatling testing base

I need an advice on the code organisation and the tests sharing. Let me start with describing the situation: we have an architecture where every separate team develops its own unique business component and their codebases don't really interfere with…
Konstantin Bodnia
  • 1,372
  • 3
  • 20
  • 43
3
votes
1 answer

How to set a cookie for a Gatling scenario

I have the following code. The problem is that the cookie is not being set for the requests that follow. I would like to set a single cookie that is used by all of the subsequent requests (including the ajaxRequests). val get = scenario("Page") …
Questioning
  • 1,903
  • 1
  • 29
  • 50
3
votes
3 answers

[Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom:]

I am trying to integrate maven with Gatling and I am getting below error message. This is my first time of doing this and I really need help. [INFO] Scanning for projects... [INFO] …
S Akin Sabak
  • 57
  • 1
  • 2
  • 10
1
2
3
28 29