Questions tagged [scala-gatling]

426 questions
0
votes
1 answer

How to extract data from a feeder on gatling

I'm new with gatling and I have problem that I can't resolve by myself. I have to extract values from feeder I created, but I don't have idea how to do. Do you have any ideas how to do this? Thanks for your help. val feeder =…
0
votes
1 answer

Gatling - randomize scenario's request order?

GOAL I'm trying to randomize the order of 5 steps taken by each user/scenario. That is, these are my users, and the order of steps to take (among steps A, B, C, D, and E) user 1: A, E, B, D, C user 2: D, E, C, B, A etc ie, each user takes each…
stuart
  • 1,785
  • 2
  • 26
  • 38
0
votes
1 answer

using Gatling, how can the statusInfo in the response be checked?

When making an http request using Gatling, the response has the java method getStatusInfo() which returns and object of type StatusType which has a getReasonPhrase() which returns a String. I'd like to get that reasonPhrase from the response. How do…
inor
  • 2,781
  • 2
  • 32
  • 42
0
votes
1 answer

gatling Performance tests giving 255 exit code when I run it on Linux machine

I am facing strange issue. Whenever I try to run gatling performance-test cases on Linux, it gives me 255 error code. As follow- [ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.2.4:integration-test (default) on project XYZ: Gatling…
0
votes
2 answers

JMS-Loadtest using Gatling: unable to initialize ContextFactory of IBM MQ

I'm implementing a load test scenario against a IBM MQ with Gatling. The setup is basically the same as mentioned here Problem: I'm not able to initialize the required ContextFactory with IBM MQ - which should be…
0
votes
1 answer

Need to write Gatling for TCP socket connection as server and as client

My application uses Java and Spring Integration for Tcp connection. There are two types of features, In first I need to connect application as client and in another need to connect as server. Both are having two way communication using gateway using…
0
votes
0 answers

Scala - how to use a computed variable name

I am using Gatling (https://gatling.io) and struggling a bit with the scala (just learning). I have a feeder which pulls in user data from a csv file: val feeder = csv("seedfile.csv").circular And I can happily access values in this file, e.g this…
SwiftD
  • 5,769
  • 6
  • 43
  • 67
0
votes
0 answers

How to record requests from client in Gatling

I have a Java desktop application. I want to know if there is a way to record server calls (GET & POST requests) using Gatling where requests will be generated from desktop application. I am trying to use Gatling for load testing.
MIM
  • 499
  • 3
  • 11
  • 30
0
votes
1 answer

Create account script

How can I create a create account script in gatling? I do not find any example of how can I access the post response from the code bellow to create another request. val httpConf = http .baseURL("http://localhost:3030") // Here is the root for…
Victor
  • 8,309
  • 14
  • 80
  • 129
0
votes
1 answer

How to compare HttpCheck and String types in Gatling

I have problem with compare to types. I try to get some parameter from json and then compare it with String value. It looks like: val x: HttpCheck = jsonPath("some path").saveAs("x") and then .exec(some code).asLongAs(x != "aaa") { some…
vott
  • 53
  • 8
0
votes
1 answer

Gatling: Cannot print a response from WebSocket server

I'm using the following code in Gatling: .exec(ws("Open WS connection") .open("/${session_id}/socket?device=other")) .pause(2) .exec(ws("Get client browser id") .sendText("[]") …
Vladimir
  • 630
  • 3
  • 12
  • 26
0
votes
0 answers

How to compare the String in the scripts of Gatling

How to compare the String in the scripts of Gatling? While use code .check("${loginStatus}".is("1")) to compare the variable loginStatus It encountered the error that "is" only used for Integer not String member.
0
votes
0 answers

How many users i can launch in Gatling with these computer parameters:

I need to execute load test for our website with load 2000r/s, what would you say about this according to my computer power, is that ok or not. My Computer: MAC OS Version: 10.12.6 Processor: 2.6 GHz Intel Core i5 Memory: 8 GB 1600 MHz DDR3
Alexander Tunick
  • 517
  • 1
  • 6
  • 20
0
votes
1 answer

Gatling test - exceeds JVM code size limits. Method 's code too large

I have a huge gatling test scrip from recording a big application. When I try to run it, I am getting an error, Could not write class AssociateAll because it exceeds JVM code size limits. Method 's code too large! I am trying to go around it.…
Bala
  • 749
  • 11
  • 27
0
votes
1 answer

save jdbc response and iterate to next request

I am using Gatling ver. 2.1.7. I want to iterate IDs which I got from sql query. Below SQL statement will fetch 100 IDs, I want to iterate those 100 IDs. How do I do that? here is the code, val dbStatement = System.getProperty("dbStatement",…
Peter
  • 855
  • 2
  • 15
  • 35