This is an example test using Gatling. A minimal HTTP server is used as an example system under test.
- Scala - Programming language
- Gatling - Load testing tool and reporting tool
- Maven - Build automation tool
- TypeSafe - Configuration and performance/scalability
- Jasypt - Java Simplified Encryption
- JsonFeeders - Test data generation
I prefer manual configuration, so you need to add to your
pom.xml:
Dependancy and plugin followin this link documentation and installation.
mvn test -Pperf-test
The plugin is set up to execute a simulation class, which can be selected interactively via the console.
mvn gatling:test
Alternatively, if you want to run a specific simulation class, you can specify it using the gatling.simulationClass parameter.
mvn gatling:test -Dgatling.simulationClass=simulations.MySimulation
Remember to replace simulations.MySimulation with the fully qualified name of your simulation class.
Test results are automatically generated upon test execution. Documentation and examples of the reports are available here.
Loggers are used to control logging behavior for specific parts of the application. Logback supports different log levels, including TRACE, DEBUG, INFO, WARN, ERROR, and OFF. The INFO level indicates that only informational messages and higher will be logged for this logger.