Learn how to create and run BlazeMeter tests from GitLab CI/CD.
In this integration. GitLab Continuous Integration and Continuous Delivery (GitLab CI/CD) jobs are executed within Docker containers through the utilization of the GitLab framework. By design, GitLab CI/CD relies on runners on which jobs get executed inside Docker containers. A BlazeMeter Docker image was developed for this integration that performs various functions, including but not limited to, creating a test, running an existing test, updating the test files of an existing test, and so on.
For the full list of BlazeMeter-related functions performed by the Docker image, see Create a New Test.
Create a Job
This section details the steps involved in creating a simple job in GitLab CI/CD.
1. Log in to your GitLab CI/CD account.
2. Click New Project.
3. Create a project as shown below.
4. Create a .gitlab-ci.yml file.
GitLab CI/CD uses a .gitlab-ci.yml file where you define the following:
The structure and order of jobs for the runner to execute.
The actions for the runner to take when encountering specific conditions.
Here is an example of a .gitlab-ci.yml file that prints a bunch of statements to the console:
5. To save your changes, click Commit.
You can now run the jobs in your pipeline by navigating to CI/CD >> Pipelines and clicking Run Pipeline.