BlazeMeter has released a new plugin to TeamCity to simplify your load testing needs. You only need to connect your BlazeMeter account to TeamCity, configure a simple build step and you are good to go. You can configure TeamCity to run the BlazeMeter build step whenever you want, and the test will start with your pre-configured settings.
What is TeamCity
TeamCity is a user-friendly continuous integration (CI) server for professional developers and build engineers working on .NET, Java, and Ruby projects.
How to install BlazeMeter’s plugin for Teamcity ?
- Download the TeamCity (JetBrains) plugin.
- Copy the 'BlazeMeter.zip' file to the 'TeamCity Data Folder/plugins' directory, and restart the TeamCity server and agents.
How to configure BlazeMeter’s plugin for TeamCity ?
First, Get the BlazeMeter user key. You can get this key from your Settings Panel. You should see a Gear icon at the top right corner of the screen. Click on it and you will be transferred to the 'Settings' Panel.
Select 'API Key' Copy and paste the API Key into a document for later use. This key will be used as a parameter in the API to identify the user.
- The plugin's configuration page is accessible in TeamCity from the ‘Administration’ section, in the ‘BlazeMeter’ link on the left side of the screen.
- This is also the place to configure your proxy server settings: Name, Port, User and Password.
- Note the 'BlazeMeter API version' field:
If you're using BlazeMeter's newer UI (your the URL starts with a.blazemeter.com/app ) then choose V3.
If you're using BlazeMeter's older UI (the page after login starts with a.blazemeter.com/cloud) then choose V2.
How to configure a build using BlazeMeter’s plugin for TeamCity ?
Add a new build step with type 'BlazeMeter'.
- If your keys were pre-configured in the global settings, you will now see all your tests in the drop down. Select a test to run.
- Enter the thresholds for the error percentage and response time, to specify when a build becomes unstable or fails.(Not Required)
- Choose the test duration.
- Make sure to ‘Save’ your settings.
Paths can be:
- Absolute path (ex': in Windows: C:/Test/DataFolder, in Linux: /mnt/share/datafolder)
- Relative path. This is relative to checkout directory. ex': DataFolder , this assumes that your checkout structure contains the DataFolder in the main node.
Please Note, if you choose to upload the files, be sure to fill in the field ‘Main JMX’ with the ‘.jmx’ file name in the Data Folder.
24.12.2014 Released TeamCity plugin for Blazemeter 3.0