/gatling-example

Repository with sample Gating scenario

Primary LanguageJavaMIT LicenseMIT

Gatling Example

Sample repository with Gatling scenarios.

How to build executable jar

./gradlew fatJar

How to run simulations

export LIMIT=<Number of requests needs to invoke>
export DURATION_IN_SECONDS=<How long performance tests should run>
java -jar build/libs/gatling-example-1.0-SNAPSHOT-all.jar # to run all simulations sequentially
java -jar build/libs/gatling-example-1.0-SNAPSHOT-all.jar <simulation name(s)> # to run specific simulation(s)

example 1

export LIMIT=5
export DURATION_IN_SECONDS=5

java -jar build/libs/gatling-example-1.0-SNAPSHOT-all.jar

example 2

export LIMIT=5
export DURATION_IN_SECONDS=5

java -jar build/libs/gatling-example-1.0-SNAPSHOT-all.jar GetPhotosSimulation

example 3

export LIMIT=5
export DURATION_IN_SECONDS=5

java -jar build/libs/gatling-example-1.0-SNAPSHOT-all.jar GetPhotosSimulation GetTodosSimulation