Skip to content

An example of load simulation with the Gatling performance testing tool.

Notifications You must be signed in to change notification settings

alex-kapranchuk/load-gatling-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project load-gatling-scala-example

Project Overview

This is an example test using Gatling. 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

pom.xml:

Dependancy and plugin followin this link documentation and installation.

Running Tests Using Gatling Maven Plugin

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.

The Test Results

Test results are automatically generated upon test execution. Documentation and examples of the reports are available here.

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.

About

An example of load simulation with the Gatling performance testing tool.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages