Gatling

Gatling Stress Tool: Example Simulation with a Circular Feed

Here is a simple example of a Gatling Stress Tool simulation that uses a circular feed to populate the request body. I wanted to exercise a dynamic search that I have in the UI by iterating through various different search criteria, thus varying the queries eventually executed by the database. Using a circular feed to populate the body of the request allowed me to do this. The body is JSON and is stored in a tsv file. I had to play with the quotes in the data file a bit to get it to work correctly.

Note, this is just the simulation, following the modularization structure in the gatling docs.

Helpful Links:

Version Info
Gatling: 1.5.3

Gatling Stress Tool: Utilizing Session User Id in a Simulation

I’ve recently been playing around with Gatling Stress Tool to set up some performance tests. It has proved very easy to get up, running and testing.

For this test case I wanted to run through some CRUD operations and to make sure the object ID was unique, I’m using concatenating the session User Id to the object id. I don’t know scala, so I needed a little help that is readily available from the Gatling group.

Here’s the test case. It doesn’t have the httpConf stuff b/c I’m following the Simulation Modularization structure.

And then when it runs I can see the departmentCode is PerfDept1, PerfDept2, etc.

Version Info:
Gatling: 1.5.3