Skip to content

eataborda/load-gatling

Repository files navigation

gatling-test-run Gradle Gradle Plugin Portal

Basic Gatling simulation

A basic gatling test with gradle and scala, based on the gatling-gradle-plugin-demo-scala repository

Contains:

  • Basic build.gradle config
  • Basic sample of a simulation with a friendly structure

Use sample project locally

  • Verify that you have Git
  • Verify that you have Java installed, also that you already setup the following environment variables: $PATH and $JAVA_HOME
  • Clone the repository and move inside that path:
$ git clone git@github.com:eataborda/load-gatling.git
$ cd ./load-gatling

Run simulations

There are two ways to run the simulations depending on the number you want to run, please go to the root of the repository and execute the following command:

  • Run all simulations:
$ ./gradlew gatlingRun --all
  • Run a specific simulation:
$ ./gradlew gatlingRun --simulation=com.github.eataborda.gatling.basic.BasicSimulation

To run a simulation class it is necessary go to the path src/gatling/scala and identify:

  • The package that contains the simulation class: com.github.eataborda.gatling.basic

  • The name of the simulation class: BasicSimulation

About

Basic load simulation test with Gatling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages