Skip to content

Commit 50c93e8

Browse files
committed
rephrase
1 parent 27233c6 commit 50c93e8

File tree

2 files changed

+38
-30
lines changed

2 files changed

+38
-30
lines changed

content/guides/github-action-integration/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ In our example, we generate 1 user coming at once to see if our simulation is wo
4242
Now that we have our test locally, we need to deploy the package to Gatling Enterprise to create a simulation.
4343

4444
{{< alert info >}}
45-
This video showcases the JavaScript SDK, but the same process applies to all SDKs that Gatling provides.
45+
While this video demonstrates the JavaScript SDK, the same process applies to all Gatling SDKs.
4646
{{< /alert >}}
4747

4848
{{< youtube jYPc6lwBAAQ >}}

content/guides/gitlab-ci-integration/index.md

+37-29
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ date: 2025-03-11T13:35:00+02:00
1111

1212
---
1313

14-
At Gatling, we strongly believe the shift-left approach is fundamental to ensuring application quality. This methodology, which involves integrating testing as early as possible in the development cycle, is particularly crucial for performance testing. Detecting and resolving performance issues before production deployment helps prevent critical and costly situations.
15-
16-
In this guide, we demonstrate how to integrate performance testing into your CI/CD pipeline using Gatling and Gitlab CI. This approach enables you to automate your performance tests and ensure application reliability.
14+
Performance testing is a critical component of modern software development. By integrating Gatling Enterprise with GitLab CI, you can incorporate performance testing into your development workflow, ensuring your applications meet performance standards before reaching production.
1715

1816
## Prerequisites
1917

@@ -25,66 +23,76 @@ In this guide, we demonstrate how to integrate performance testing into your CI/
2523

2624
### Create the Scenario
2725

28-
In this tutorial, we create a small scenario using our JS SDK. Our users will load the home page of our [e-commerce website demo](https://ecomm.gatling.io/).
26+
Let's create a simple scenario that loads our [e-commerce demo website](https://ecomm.gatling.io/).
2927

3028
{{< include-code "ecommerce#ecommerce-example" ts java scala kt>}}
3129

3230
### Generate the user and assertions
3331

34-
In our example, we generate 1 user coming at once to see if our simulation is working. After that, we define our assertions, which allows us to assert the maximum or minimum response time, the percentage of successful requests, and more. In our case, we only check if we have more than 90% successful requests.
32+
We'll start with a single user to verify our simulation works correctly. Then we'll add assertions to validate our test results. In this example, we'll check that more than 90% of requests are successful.
3533

3634
{{< include-code "ecommerce#set-up" ts java scala kt>}}
3735

3836
## Gatling Enterprise
3937

4038
### Deploy to Gatling Enterprise
4139

42-
Now that we have our test locally, we need to deploy the package to Gatling Enterprise to create a simulation.
40+
Now that we have our test ready, we need to deploy the package to Gatling Enterprise.
4341

4442
{{< alert info >}}
45-
This video showcases the JavaScript SDK, but the same process applies to all SDKs that Gatling provides.
43+
While this video demonstrates the JavaScript SDK specifically, the deployment process remains identical across all Gatling SDKs and CI/CD platforms we support.
4644
{{< /alert >}}
4745

4846
{{< youtube jYPc6lwBAAQ >}}
4947

5048
### Create the Simulation
5149

52-
Now that our package is on Gatling Enterprise, we need to create a simulation.
50+
{{< alert info >}}
51+
This step is applicable to all CI/CD platforms supported by Gatling Enterprise.
52+
{{< /alert >}}
53+
54+
Next, we'll create a simulation in Gatling Enterprise using our deployed package.
5355

5456
{{< youtube 7Gb4BcHU0P8 >}}
5557

5658
### Copy Your Simulation ID
5759

58-
Don't forget to copy your `simulation Id` (click on the three dots to the right of your simulation name); we will need it later.
60+
Make sure to copy the `simulation Id` by clicking the three dots menu next to your simulation name, as we'll use this ID in subsequent steps.
5961

6062
### Create an API Key
6163

62-
Now, for Gitlab to communicate with Gatling Enterprise and launch the simulation, you need to create an API key.
64+
{{< alert info >}}
65+
This step is applicable to all CI/CD platforms supported by Gatling Enterprise.
66+
{{< /alert >}}
67+
68+
To enable Gitlab CI to interact with Gatling Enterprise and trigger simulations, you'll need to generate an API key.
6369

6470
{{< youtube iP4_WM9wTNA >}}
6571

66-
Now that everything is set up on the Gatling Enterprise side, it's time to create our CI script on Gitlab.
72+
With Gatling Enterprise configured, we can now proceed to setting up our GitLab CI pipeline.
6773

6874
## Gitlab CI
6975

7076
### Set up the Secrets and Environment
7177

72-
To successfully launch our workflow, we begin by configuring a secret in our Gitlab repository. This secret is essential for securely managing access to external services and APIs. To add the secret, follow these steps:
78+
To run simulations from GitLab CI, you'll first need to configure a secure API token. Follow these steps to set up the required variable:
79+
80+
1. Navigate to your GitLab repository
81+
2. Access the `Settings` menu
82+
3. Select `CI/CD` from the sidebar
83+
4. Click on `Variables`
84+
5. Press the `Add variable` button
85+
6. Choose `Masked and hidden` for `Visibility`
86+
7. Enter `GATLING_ENTERPRISE_API_TOKEN` as the `Key`
87+
8. Paste your API token as the `Value`
7388

74-
1. Navigate to your Gitlab repository
75-
2. Go to the `Settings` tab
76-
3. Click on `CI/CD`
77-
4. Select `Variables`
78-
5. Click on the `Add variable` button
79-
6. Select `Masked and hidden` on `Visibility`
80-
6. Set `GATLING_ENTERPRISE_API_TOKEN` on `Key`
81-
7. Set the value of the `GATLING_ENTERPRISE_API_TOKEN` to `Value`
89+
If you need to generate a new API token, follow our guide [here]({{< ref "../reference/execute/cloud/admin/api-tokens" >}}).
8290

83-
If you don't have an API token yet, you can learn how to create one by following the instructions on this [page]({{< ref "../reference/execute/cloud/admin/api-tokens" >}})
91+
### Configure the Pipeline
8492

85-
### Understand the Workflow
93+
Let's set up a basic GitLab CI pipeline that will run your performance tests. The pipeline configuration will trigger a simulation using the provided **`simulation Id`**.
8694

87-
In this example, we configure a workflow which will only start a simulation as already configured and uploaded on Gatling Enterprise.
95+
Here's the pipeline configuration:
8896

8997
```yaml
9098
stages:
@@ -101,16 +109,16 @@ run-gatling-enterprise:
101109
SIMULATION_ID: '00000000-0000-0000-0000-000000000000'
102110
```
103111
104-
If you wish to customize this workflow further, refer to our [Gitlab documentation]({{< ref "../reference/integrations/ci-cd/gitlab-ci" >}}) for more details and options.
112+
For advanced pipeline customization options, check our [GitLab CI documentation]({{< ref "../reference/integrations/ci-cd/gitlab-ci" >}}).
105113
106-
### Launch the Workflow
114+
### Run the Pipeline
107115
108-
Now that our requirements are set up, go to Gitlab → Build → Pipeline and click on `new pipeline`. On variable put `SIMULATION_ID` on key and your `simulation Id` you copied before as value and click on `New pipeline`.
116+
With everything configured, you can now trigger the pipeline from GitLab CI/CD. Provide your **`simulation Id`** when running the pipeline, and you'll be able to monitor the test execution both in GitLab and Gatling Enterprise.
109117

110-
{{< youtube Ocv66gH5ZjM >}}
118+
{{< youtube UqRzLjJqkds >}}
111119

112120
## Conclusion
113121

114-
Integrating Gatling with Gitlab CI offers a solution for automating performance testing. By adopting this shift-left approach, you can identify and address performance issues early in the development cycle, ensuring higher application quality and reliability.
122+
Integrating Gatling with GitLab CI provides a robust solution for automated performance testing in your development pipeline. By implementing this shift-left approach, you can identify and address performance issues early in the development cycle, ensuring higher application quality and reliability.
115123

116-
This integration streamlines the testing process and enhances efficiency between development teams. With Gatling Enterprise and Gitlab CI, you can create a workflow that monitors your application's performance
124+
This integration streamlines the testing process and enhances collaboration between development teams. With Gatling Enterprise and GitLab CI, you can create a seamless pipeline that continuously monitors your application's performance, making it easier to maintain high standards of application quality throughout the development lifecycle.

0 commit comments

Comments
 (0)