https://github.com/alex-kapranchuk/load-gatling-demo
An example of load simulation with the Gatling performance testing tool.
https://github.com/alex-kapranchuk/load-gatling-demo
gatling jasypt load-testing maven performance-testing scala typesafe
Last synced: 4 months ago
JSON representation
An example of load simulation with the Gatling performance testing tool.
- Host: GitHub
- URL: https://github.com/alex-kapranchuk/load-gatling-demo
- Owner: alex-kapranchuk
- Created: 2023-07-11T13:19:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-17T19:11:58.000Z (5 months ago)
- Last Synced: 2025-01-17T20:19:53.013Z (5 months ago)
- Topics: gatling, jasypt, load-testing, maven, performance-testing, scala, typesafe
- Language: Scala
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project load-gatling-scala-example
## Project Overview
This is an example test using [Gatling](https://gatling.io/). A minimal HTTP server is used as an example system under
test.### Technology Stack
- 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## Setup
I prefer manual configuration, so you need to add to your
```bash
pom.xml:
```
Dependancy and plugin followin this link [documentation and installation](https://docs.gatling.io/reference/integrations/build-tools/maven-plugin/).## Running Tests Using Gatling Maven Plugin
```bash
mvn test -Pperf-test
```
The plugin is set up to execute a simulation class, which can be selected interactively via the console.
```bash
mvn gatling:test
```
Alternatively, if you want to run a specific simulation class, you can specify it using the gatling.simulationClass parameter.
```bash
mvn gatling:test -Dgatling.simulationClass=simulations.MySimulation
```
Remember to replace simulations.MySimulation with the fully qualified name of your simulation class.## The Test Results
Test results are automatically generated upon test execution.
Documentation and examples of the reports are available [here](https://docs.gatling.io/reference/stats/reports/oss/).#### Logger Configuration:
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.