Questions tagged [scala-gatling]

426 questions
0
votes
1 answer

Gatling not able to use my Random Data Generator

I wrote this simple test in Gatling val createUser = http("create user") .post("form/submit") .body(StringBody(RequestBuilder.createRandomUser())).asJSON .check(status.is(200)) setUp( scn.inject( atOnceUsers(25), rampUsers(10)…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
0
votes
0 answers

JSON Error | Gatling

First of all i have admit that am novice in using gatling. While i use Gatling to test my scenario, i get the below error: Select simulation id (default is 'vertexperformance'). Accepted characters are a-z, A-Z, 0-9, - and _ v7 Select run…
Sunil
  • 553
  • 1
  • 12
  • 30
0
votes
2 answers

How to iterate over json response array

I have a question about Gatling. I need to get the following response: [ { "id": 1, "name": "Jack" }, { "id": 2, "name": "John" } ] grab those ids, iterate over them and make a new request for each of them. So far I have this: .exec( …
malutki5200
  • 1,092
  • 7
  • 15
0
votes
1 answer

Why I am getting Value is Null while executing two scenarios in Gatling?

I have two scenarios in my script. 1st "getAssets" scenario will fetch all asset IDs and save it in a list, 2nd scenario "fetchMetadata" will iterate those IDs. I have to exeecute "getAssets" scenario only once to fetch all the IDs, and then…
Peter
  • 855
  • 2
  • 15
  • 35
-1
votes
1 answer

How to pass variable of one function to another function with return type using Scala

I am new to this Scala programming. Can some one help me how can I read a value from one function and pass to another function? I have tried below code to work, but getting below error. Please help. Error: Failed to build request: No attribute named…
Quick learner
  • 699
  • 4
  • 22
  • 39
-1
votes
2 answers

Single user login user vs multiple login

Scenario: Login - Click on Add Button - Enter Details - Click on Save Button 10k user Do I really need 10k login credentials to perform this task or a single login credential can also work? Does this make any difference in performance metrics?
Cod
  • 179
  • 1
  • 12
-1
votes
1 answer

How to run gatling from multiple git repositories

i am working on a gatling project. i need to configure gatling on jenkins to run read tests from different repositories. by examples: I have 2 projects on git, project A and project B which contain performance tests. i want to create a gatling…
-1
votes
2 answers

Need to retrieve & pass a session variable in HttpRequestBuilder body scala gatling

While trying to execute below script getting ERROR as i.g.h.a.HttpRequestAction - 'httpRequest-1' failed to execute: No attribute named 'testReqJson' is defined. Need to set a session variable & pass it in body. object PostTest extends…
user16666530
  • 1
  • 1
  • 1
-1
votes
1 answer

how do I add a simulation ID on the Gatling 3.3.1 since the mute option is not available anymore

can not add simulation ID since the mute option is dropped in this version
-1
votes
2 answers

Gatling HTML response

Below is my HTML response in Gatling. I am looking to extract the value of the url field. How do I do that? script type="text/javascript" id="test"> var initialVars={ "context" : { "A": "XXXX", "B":"XXXXX"}, "u.d" : {"C":"ABC", "D":"FGH"}}; var…
SS30723
  • 21
  • 5
-1
votes
1 answer

Gatling dependant scenarios

I have 2 APIs. Post api to insert data and return unique identifier. Get api to get inserted data with unique identifier got for first post api. I have created 2 scenarios. But 2nd scenario not working because I'm not getting actual unique…
-1
votes
1 answer

scala: how to cross build the library dependency in sbt

i am using scala 2.13 and i have to use Gatling load tests, Gatling does not support Scala-2.13 for that i looked into sbt cross build and how to cross build library dependency i have two Gatling dependencies "io.gatling.highcharts" %…
swaheed
  • 3,671
  • 10
  • 42
  • 103
-1
votes
1 answer

value session is not a member of Unit

def getSessionDetails( sessionId: String, expectedStatus: String = "success" ) = { exec( http("/cap/getSessionDetails") .get("/cap/getSessionDetails.do") .queryParam("sessionID", sessionId) …
TheLionPear
  • 89
  • 1
  • 2
  • 12
-1
votes
1 answer

How can we test an API's rate limit using gatling tool?

I am new to exploring gatling and I'm trying to achieve a different case in testing rate limits. Firstly, is gatling a good tool to test rate limits? Also, what in-built functions/methods can I use to call a single http API call certain no. of times…
anonymous-explorer
  • 365
  • 1
  • 12
  • 26
-1
votes
1 answer

Send JSON in PUT request

The following passes (taken from https://gatling.io/docs/2.3/http/http_request/, removed .toJSON as it did not exist), but does not add an entry to the REST API: class TestREST extends Simulation { val httpProtocol = http …
serv-inc
  • 35,772
  • 9
  • 166
  • 188
1 2 3
28
29