- A CentOS box
- Java 8
- Gatling 2.2.3
Using Jenkins to kick of a pipeline job, or using CLI to execute a Gatling (load) simulation on multiple url's stored in a CSV...
$ mkdir /opt/gatling/
$ wget https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/2.2.3/gatling-charts-highcharts-bundle-2.2.3-bundle.zip -P /opt/gatling/
$ unzip -o /opt/gatling/gatling-charts-highcharts-bundle-2.2.3-bundle.zip -d /opt/gatling
- firstly; setting all variables
$ export JAVA_OPTS="-DcsvFile=TestApiSimulation.csv -Dduration=10 -DrampNUsers=1 -DrampDuration=1 -DrunInvalidator=false"
- secondly; running the actual simulation
$ ./gatling.sh -s my.gatling.TestApiSimulation -sf /opt/gatling-tests/TestApiSimulation -df /opt/gatling-tests/TestApiSimulation -rf /opt/gatling-tests/TestApiSimulation