BlazeMeter Azure DevOps Extension Now Available on VisualStudio Marketplace
Currently with Microsoft Azure Devops, there is an option to run cloud based load testing, including integrating with Apache JMeter, Microsoft Visual Studio Webtest as well as other options. This option is being deprecated on March 31st 2020. This will mean that users who currently rely on this service within Azure Devops platform will need to find an alternative.
BlazeMeter to the Rescue
But don’t worry, BlazeMeter is here to help! We’re really excited to announce that now BlazeMeter tests can be executed via Azure DevOps Pipelines by using our BlazeMeter Azure DevOps Extension. This extension allows you to run BlazeMeter tests in Azure pipelines.
How do I install BlazeMeter Extension in Azure DevOps?
It’s really easy to install. I’ll walk you through it.
1. Login to Azure DevOps.
2. Select your project.
3. Navigate to Pipelines -> Releases.
4. Click on +New. Select New Release Pipeline.
5. On the Select a template screen, start with an Empty Job.
6. Click on the text 1 job, 0 task to add a new task to the stage.
7. Click on + to Add a task to Agent Job.
8. When you add a task to the agent job, Add tasks screen appears on your right. Search for BlazeMeter to see the BlazeMeter Integration extension in the marketplace.
9. Click on Get it free button.
10. You will now get redirected to Azure Marketplace in a new tab.
Click Get it free.
Click Install to install and add the extension to your Organization.
11. Once added, switch to your other browser tab and click the Refresh link on the Add tasks screen. You will notice that the extension is now installed and ready to be added to a task.
How do I configure the BlazeMeter Extension to start a BlazeMeter Test?
1. Follow the steps mentioned in the above section to install the BlazeMeter Azure DevOps extension. If done already, please proceed to Step2.
2. Now that you have the extension installed, you can add it to a task to kick-off BlazeMeter tests.
3. On the Add tasks screen, search for BlazeMeter and click the Add button.
4. Enter Test URL. For Test URL, login to BlazeMeter account. Click on Tests. Select your test name, test details will appear. Copy URL of that page and paste it in Test URL text box.
5. For API Key and API secret text box, default values will appear. Azure DevOps supports the use of variables. If you wish to create your own variables and store the APIKey and APISecret values within those variables, you may leave the defaults. Refer to the next section on how to create variables in Azure DevOps.
Alternatively, you can clear the default values and configure the actual API Key and API Secret on the screen. Click here to learn more about how to generate API Key and API Secret within BlazeMeter.
6. Show Log check box is optional. When this checkbox is enabled, you will see a running log of the test in the console.
7. Click Save. Click Create release.
8. Your release is ready and you should now be able to start your BlazeMeter test from the pipeline by clicking the Deploy button.
Using Azure DevOps Variable groups
1. Login to Azure DevOps.
2. Select your project.
3. Navigate to Pipelines -> Library.
4. On Variable Groups screen, Select +Variable group.
5. Enter Variable group name. For example: BlazeMeter Keys. Description is optional. Click on +Add under Variables.
6. Add the two variables APIKEY and APISECRET. Click here for more information on how to generate BlazeMeter Keys. Click Save.
7. Now, go back to Release pipeline by navigating to Pipelines -> Releases.
8. Select the Pipeline you created. Click Edit.
9. Once in edit more, Click Variables tab and select Variable groups.
10. Click Link variable group. Select name of your variable group and click Link. Your variable group is now linked with the release pipeline. This allows you to use this variable group inside multiple releases and tasks within the pipeline.
11. Once you have set APIKEY and APISECRET as variables, you can reference them within your tasks as $(APIKEY) and $(APISECRET) respectively.
Where can I view the BlazeMeter test reports?
1. Once a release is successfully deployed, you will see a screen like below. If any failure criteria have been triggered, the task would show up as Failed.
2. Click on BlazeMeter Integration to view the log.
3. The log displays the test Report URL at the beginning of the test execution. You should be able to navigate to that URL to view the detailed report on BlazeMeter.
4. If you had Show Log checkbox enabled in your task configuration, you should see a detailed log like below.
Ready to get started with BlazeMeter? Now BlazeMeter’s Continuous Testing Platform offers you full testing capabilities, including API Functional Testing, 360 degree Monitoring, and integrated Mock Services. Put your url in the box below, or sign up here to get started.