Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 981 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 981 Bytes

Performance Testing POC for Gatling + Gradle

Setup Test Application (Json Server)

cd json_server
docker build -t savvagenchevskiy/json-server:latest -f Dockerfile .
### Run Json Server with Docker Compose
docker-compose up -d

Server will be available on: http://localhost:3001/

Run Gatling simulations with Gradle

  1. Run LoadSimulation only:
./gradlew clean gatlingRun
  1. Run specific simulations:
./gradlew clean gatlingRun-org.example.simulations.FirstSimulation

More info in Gatling Gradle plugin

Run Gatling in Docker container:

docker build -f Dckerfile -t gatling-distributed:latest

# then

docker run --rm -u gradle -e-v "$(pwd)":/home/gradle/test -w /home/gradle/test gatling-distributed:latest gradle wrapper; ./gradlew clean gatlingRun