Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 970 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 970 Bytes

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