BlazeMeter has a 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. How to get the API Key?
- The plugin's configuration page is accessible in TeamCity from the ‘Administration’ section, in the ‘BlazeMeter’ link on the left side of the screen.
- Please set the 'BlazeMeter URL' field to https://a.blazemeter.com/
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.
- Set the path for JUnit/JTL files.(Optional)
- Add JMeter Properties to your test.(Optional)
- 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.
How to configure your proxy server settings in TeamCity
1. Set up proxy on teamcity server;
Add to $TEAMCITY_HOME/conf/catalina.properties the following:
2. Set up proxy on teamcity agent(repeat on every agent, if needed);
- Add to $TEAMCITY_HOME/buildAgent/agent.sh the following:
TEAMCITY_AGENT_PROXY_OPTS="-Dhttp.useProxy=true -Dhttp.proxyHost=<IP> -Dhttp.proxyPort=<PORT> -Dhttp.proxyUser=<USER> -Dhttp.proxyPassword=<PASSWORD>"
- Make sure that these options are passed to the JVM;