Purpose of this project is to show how to loadtest the demo project at https://github.com/fnunezkanut/acr using Gatling+Scala
- JDK 1.8
- Scala
- Kotlin
- IntelliJ
-
Create a Simulation.scala class in src/gatling/scala/
-
Running a single simulation
-
./gradlew clean gatlingRun-<SIMULATION_CLASSNAME_HERE>
-
eg:
./gradlew clean gatlingRun-HealthcheckSimulation
Running integration simulation with custom properties
./gradlew clean gatlingRun-HealthcheckSimulation -Penv=dev
wheredev.properties
should exist inpropfiles/
folder. Checkpropfiles/sample.properties_
for examples and more documentation
If you want more details on what the simulation is doing consider developing only with 1 user as input in build.gradle edit gatling.logLevel setting from WARN to TRACE
After each run a html report is generated in /build/reports/gatling/ directory
There is also a simulation.log containing raw simulation data, which could be parsed for further integration...