• Install Jenkins.
  • Download the Performance Plug-in (performance.hpi) for Jenkins from https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin.
  • Unload Jenkins. Save the performance.hpi in the Plugins folder in the Jenkins. eg:- /Users/Shared/Jenkins/Home/plugins/
  • Load Jenkins. Login and goto Manage Jenkins -> Manage Plugins -> Installed (Tab) and check if the performance plugin is available.

    Screen Shot 2017-02-22 at 11.40.22

  • In the your Jmeter /bin/user.properties add the following line
  • Now create a JMeter script and check it is working fine. This script can be the script created with the Remote WebDriver Config mentioned above.


  • Now try to run it with the following command on the terminal and check if the tests are running fine
         sh jmeter.sh -Jjmeter.save.saveservice.output_format=xml -n -t /<jmeter_script_location>/TestScript.jmx -l /<jmeter_test_result_location>/TestResult1.jtl
  • Go to Jenkins and Click on Create a new Job / New Item then select Freestyle project -> name it (eg:- JMeterSeleniumGridJenkins)

    Screen Shot 2017-02-21 at 12.36.17.png

  • Navigate to the project and Click on Configure.

    Screen Shot 2017-02-21 at 13.06.23.png

  • Scroll down to Build and click on Add a build step -> Execute shell.

    Screen Shot 2017-02-21 at 14.17.57.png

  • Add the following script in the command box.
          cd /<apache_jmeter_folder_location>/bin/
          sh jmeter.sh -Jjmeter.save.saveservice.output_format=xml -n -t /<jmeter_script_location>/TestScript.jmx -l /<jmeter_test_result_location>/TestResult1.jtl

    Screen Shot 2017-02-21 at 14.35.40.png

  • Scroll down to Post Build Actions and select Publish Performance test Result

    Screen Shot 2017-02-21 at 14.37.10

  • Select JMeter for for the Performance Report and give the path /<jmeter_test_result_location>/TestResult1.jtl

    Screen Shot 2017-02-21 at 14.37.33.png

  • You can change the threshold etc according to your need. Then click on save.

    Screen Shot 2017-02-21 at 14.38.10.png

  • Then click on Build now in the project. And click on the running build and check the Console Output.

    Screen Shot 2017-02-21 at 16.35.11.png

  • In case issues with the run please check the Read and Write option of the folders of accessing.
  • You should have the Performance reports displayed as well.

    Screen Shot 2017-02-21 at 16.35.20.png


2 thoughts on “Configuring Jenkins to trigger and run JMeter test

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s