How to Run an Open Source Vegeta Load Test in BlazeMeter
BlazeMeter supports Vegeta as an executor through the Open Source test automation framework Taurus. If you are considering creating a Vegeta script with BlazeMeter for the first time, I recommend reviewing the Creating a Taurus Test article in the BlazeMeter Guide.
This blog post will explain how to easily run your Vegeta tests in BlazeMeter in just a few steps.
Getting Started with Vegeta and BlazeMeter
Taurus consumes configuration files written in JSON or YAML, and it can reference Vegeta scripts.
1. Create your Vegeta target file.
This is an example Vegeta target file. It is a minimal example of the Vegeta syntax that demonstrates how to open a web page. You will replace this file with one of your existing Vegeta scripts.
2. Write a Taurus test for Vegeta in a text editor. You can learn more about Taurus testing here, or you can just use the following example script with a minimal configuration as a template:
Make sure to set the executor name to ‘Vegeta’. In this example, I have set the number of concurrent users to 100 and the test will run for one minute. You can set those two parameters to any numbers of your choice. And don’t forget to put your Vegeta target file (here vegeta_example.in) into the scenario section of the file.
3. Store the code in a YAML file, here it’ll be ‘vegeta_example.yml’.
4. Make sure you have both files — the Taurus test and the Vegeta target file. These two files are necessary for the performance test to run.
5. Log on to https://a.blazemeter.com. You can create a free account if you don’t have one.
6. Create a new Performance Test by clicking on “Performance” -> Create Test -> Performance Test.
7. Upload both files. If you have questions about details, please see Creating a Taurus Test.
8. Make sure that both files have been uploaded by verifying that the ‘Scenario Definition’ section looks like this:
9. Click 'Run Test' on the left side and wait for it to finish.
10. After the test has completed running, you will see results in a table similar to the following screenshot:
And that’s it! Get started with BlazeMeter today by clicking here.