Follow

BlazeMeter's TeamCity plugin

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 ?

  1. Download the TeamCity (JetBrains) plugin.
  2. Copy the 'BlazeMeter.zip' file to the 'TeamCity Data Folder/plugins' directory, and restart the TeamCity server and agents.
$ ../TeamCity/bin/teamcity-server.sh stop
$ cp blazemeter.zip /Users/Blazy/.BuildServer/plugins
$ ../TeamCity/bin/teamcity-server.sh start

 

How to configure BlazeMeter’s plugin for TeamCity ?

First, Get the BlazeMeter user key. How to get the API Key?

  1. The plugin's configuration page is accessible in TeamCity from the ‘Administration’ section, in the ‘BlazeMeter’ link on the left side of the screen.
  2. 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'.

  1. 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.
  2. Set the path for JUnit/JTL files.(Optional)
  3. Add JMeter Properties to your test.(Optional)
  4. 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:

http.proxyHost=<IP>

http.proxyPort=<PORT>

http.proxyUser=<USER>

http.proxyPassword=<PASSWORD>

 

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;




Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.