Questions tagged [scala-gatling]

426 questions
0
votes
1 answer

Gatling Load Test - XML file as feed possible?

I have a an endpoint that takes a specifically formatted XML. I'm trying to use a similar function as circular on the XML file for the feed. I'm able to do this with a CSV file, but I can't seem to get this with an XML file. Is this even possible to…
0
votes
1 answer

Randomize throttling in Gatling

Is there any way we can randomize the request per second in Gatling? In the documentation they have provided reachRps and jumpToRps which doesn't provide dynamic request within a range. How can i setup the script to publish request in range of 500…
ABS
  • 61
  • 2
  • 10
0
votes
1 answer

API/ Microservice specific testing using gatling

I am new to scala and gatling . Till now i have recorded scenario specific simulation using gatling but I would like to know how to perform load on each API individually. In my scenario, I have different API like loginservice, accountservice and…
Karthik P
  • 107
  • 2
  • 12
0
votes
1 answer

How to assert count of the record in couchbase in Gatling Simulation

I am trying to capture the record which has been created on running of gatling simulation test. My scenario is that read json data from csv and publish to kafka which is consumed by microservice and store data into couchbase, since kafka…
Smit K
  • 121
  • 1
  • 7
0
votes
1 answer

Connect exception in gatling- What does this mean?

I ran the below config in gatling from my local machine to verify 20K requests per second .. scn .inject( atOnceUsers(20000) ) It gave these below error in reports...What des this mean in gatling? j.n.ConnectException: Can't assign…
divya
  • 53
  • 1
  • 9
0
votes
0 answers

Gatling plugin Errors

I have the example from https://github.com/gatling/gatling-maven-plugin-demo It works for me everything is fine but if I try to add my own simulation or change the simulation from the example I get Update: just removed my own simulation and now it…
TOTOROCATBUS
  • 172
  • 1
  • 2
  • 17
0
votes
1 answer

Alway get an error "No attribute named 'name' is defined" if try to process multiple lines from csv data feed

In my test script I try to process 100 lines data from csv data feed via following statement: private val scn = scenario("test_scn").feed(insertFeeder, 100).exec(httpReq) But I always get an error: [ERROR] HttpRequestAction - 'httpRequest-1'…
Linda
  • 1
  • 3
0
votes
2 answers

Gatling2 Failing to use user session properly

I hope someone can point me into the right direction! I try to run one scenario which has several steps that have to be executed in order and each with the same user session to work properly. The below code works fine with one user but fails if I…
Gerrit
  • 365
  • 1
  • 3
  • 19
0
votes
1 answer

Gatling: Can ramping up of individual scenarios be done just like the users?

Consider an example of testing API's with Gatling. For some weird requirement i had to get a scenario for each user var scenarioList // This is of type mutable list I have plenty of scenarios added to this list as my request body should differ for…
Mahesh
  • 129
  • 1
  • 2
  • 19
0
votes
1 answer

How Can I capture "HTTP Response" on Gatling script?

I need to capture "HTTP Response" in a Gatling Script, With Response Code, cookies, Response message, Response body, etc.. The HTTP response associated with a HTTP request. I need both in my Gatling Script.
0
votes
1 answer

Sequential scenarios in the same simulation with Gatling

It's possible multi scenarios in the same simulation? Example: I have to execute the same test during 2H, but in each interval time (10min), so I inject different rate user/second (per scenario). I have tests with: setUp( …
Antonio
  • 21
  • 6
0
votes
0 answers

Gatling simulation not terminating

I created a Gatling simulation script that first executes some requests that were generated by the recorder. After this, it executes a custom action which starts another thread, since there are blocking methods involved. My problem now is the fact…
maresac
  • 21
  • 6
0
votes
1 answer

Gatling: Save random attribute in another attribute

Is it possible to save an attribute at runtime and then save it as another attribute? For instance, I have an ID that is used in the URL, I've captured it from one page, however there are a list of 5 on the page. I can use findAll to select them…
jknutt1568
  • 21
  • 5
0
votes
2 answers

Scala random number in a string

val scn = scenario("newUser") .exec(http("request_0") .get("/wordpress/?page_id=83") .headers(headers_0)) .pause(1) .exec(http("request_1") .post("/wordpress/?page_id=83") .headers(headers_1) …
0
votes
1 answer

Gatling scala - read collection from file and send it as json

I have a file with strings and I want to read from it every time X records. I have 2 questions: Which type of file should I save my records? ("records.") How can I read X records from my file and send them as json for HttpRequestBuilder as body?…