Basic Gatling Example
Below is a simple workflow for executing a Gatling test available on GitHub. You can paste this directly into the
YAML of an existing or new test, just make sure to update the name
and namespace
for your environment as needed.
- The
spec.content
property defines the path to the Gatling test in a GitHub repository. - The
spec.use
property uses the official Gradle template to run the test with Gradle.
Gatling Workflow
kind: TestWorkflow
apiVersion: testworkflows.testkube.io/v1
metadata:
name: gatling-sample
namespace: testkube
spec:
use:
- name: official--gradle--v1
config:
run: ./gradlew gatlingRun
version: 8.7.0-jdk21-alpine
content:
git:
uri: https://github.com/techmaharaj/Gatling-Gradle-Sample.git
revision: main
container:
workingDir: /data/repo/
steps:
- condition: always
workingDir: /data/repo/build/reports
artifacts:
paths:
- '**/*'
After execution, you can see the log output from the test executions under the executions panel tabs:
- Log Output
- Artifacts
The uploaded report is available in the Artifacts tab:
See how to effortlessly perform load testing in Kubernetes using Gatling and Testkube from the Testkube UI here: