Steadybit logoResilience Hub
Try SteadybitGitHub icon
Steadybit logoResilience Hub

Gatling

Load Test

Load Test

Runs a Gatling load test.
Install now

Gatling

Runs a Gatling load test.
Load Test

Load Test

Install now

Gatling

Load Test

Load Test

Runs a Gatling load test.
Install now

Gatling

Runs a Gatling load test.
Load Test

Load Test

Install now
Go back to list
gatling loadtest within the experiment editor.gatling loadtest within the experiment editor.

Gatling

Gatling is an open-source load- and performance-testing framework based on Scala, Akka and Netty. You can integrate the execution of Gatling load tests directly into your experiments.

Integrate Custom Load Tests

We base our integration of custom load test on the concept of Docker-images. Therefore, you need a Docker Hub user or a private Docker registry as prerequisite. After that, just follow the steps below to integrate your custom load test:

  1. Place your Gatling load test file in a separate folder. We assume for this steps that it is named custom.scala. Alternatively, download an example custom.scala load test and adjust it as needed.
  2. Put a Dockerfile into the same directory which simply copies the custom load test into the Docker image. It looks like:
# Inherit existing image
FROM steadybit/action-gatling:latest

# Provide custom test
COPY custom.scala /script.js
  1. Build the docker image and tag it with your own Docker Hub user by running docker build . --tag <your-docker-hub-huser>/action-gatling:latest.
  2. Login to dockerhub via docker login
  3. Push the Docker image to Docker Hub Registry via docker push <your-docker-hub-huser>/action-gatling:latest
  4. In the experiment using the Gatling load test you have to specify <your-docker-hub-huser>/action-gatling:latest as Docker Image parameter.

In case the image is not public and requires authentication to be pulled you can configure the Pull-Secrets in the platform via Application Settings -> Agents -> Pull Secrets.

Tip: Instead of the dockerhub registry you can also use a custom one - you then need to use a prefixed image tag and the correct login

Parameters

Within the Gatling load test you have access to the following parameters as environment variables. You can use them in the script via e.g. ${__ENV.DURATION} as shown in the attached custom.scala.

ParameterEnvironment VariableDescriptionDefault
DurationDURATIONHow long should the load test run?inherited from experiment duration
Virtual UsersVUSHow many virtual users should be started?1
Homepage
docs.steadybit.com/quick-start/set-up-agents
MaintainerSteadybit
Start using Steadybit for free

Steadybit is free for personal use. Start your journey towards reliability!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Steadybit logoResilience Hub
Try Steadybit
HubActionsTargetsExtensionsRecipes
© 2023 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon