GitLab Docker image and API Monitoring-related functions
The Docker image for GitLab facilitates the execution of various functions that you can use for testing with BlazeMeter. This topic outlines each of these functions, accompanied by the corresponding syntax to use in the YAML file.
Run BlazeMeter API Monitoring test
To run an existing API Monitoring test, configure your YAML file as follows:
Copy
image: blazerunner/blazemeter:gitlab
variables:
apiToken: 'xxx'
runExistingAPITest: 'true'
triggerUrl: 'xxx'
job 0:
stage: deploy
script:
- "pwsh /Blazemeter-run.ps1 -apiToken $apiToken -runExistingAPITest $runExistingAPITest -triggerUrl $triggerUrl"
Run BlazeMeter API Monitoring bucket-level test
To run an existing bucket-level test, configure your YAML file as follows:
Copy
image: blazerunner/blazemeter:gitlab
variables:
apiToken: 'xxx'
runExistingBucketLevelTest: 'true'
triggerUrl: 'xxx'
job 0:
stage: deploy
script:
- "pwsh /Blazemeter-run.ps1 -apiToken $apiToken -runExistingBucketLevelTest $runExistingBucketLevelTest -triggerUrl $triggerUrl"