Skip to content

Latest commit

 

History

History
95 lines (61 loc) · 3.24 KB

jmeter-jenkins.md

File metadata and controls

95 lines (61 loc) · 3.24 KB

This page describes how to install and use Jenkins to process JMeter jobs.

There are several alternatives:

## Installation See jenkins-setup.md about generic setup. ## Add-ons to Jenkins for JMeter For easier invocation, the Performance Plugin from https://github.com/jenkinsci/performance-plugin.

For managed devops: https://xebialabs.com/community/webinars/dzone-presents-seamless,-scalable-test-management-using-jenkins-and-xebialabs-software/

## Workspace Setup Source Code Management (git) and confirm it's working.
  1. On the left menu, click Workspace.

    jenkins workspace maven

  2. Click target to drill down into the JMeter assets.

  3. Click jmeter.

## Parameters 0. Check This build is parametized. 0. Click Add parameter 0. Select Text parameter for each of these parameters (keeping the all-caps):

THREAD_COUNT - default to 1 when first setting up, then up it after verification.

LOOP_COUNT - default to 1 to start.

## Build Provide to JMeter parameters in Jenkins:
  1. For Root POM, type in pom.xml

  2. For Goals and options, type in

clean verify -Dperformancetest.threadCount=$THREAD_COUNT -Dperformancetest.loopCount=$LOOP_COUNT


0. For <strong>Post steps</strong>.

0. In the left menu, click <strong>Build with Parameters</strong>.
0. Click Build button.
0. Click <strong>Console</strong> to watch the run.


<a id="Results">
## Results</a>

0. On the left menu, click Workspace.

<img width="262" alt="jenkins workspace maven" 
src="https://cloud.githubusercontent.com/assets/300046/12677619/1781d68e-c64f-11e5-969b-daf96b2d7370.png">

0. Click <strong>target</strong> to drill down into the JMeter assets.
0. Click <strong>jmeter</strong>.
0. Click <strong>results</strong>.

* Sample file /job/JMeterCI/ws/target/jmeter/...ThreadStateOverTime.png 

<img width="801" alt="jenkins jmeter thread group graph" src="https://cloud.githubusercontent.com/assets/300046/12677781/3640d43e-c650-11e5-8d2c-cc84d7c6359b.png">

* Sample file /job/JMeterCI/ws/target/jmeter/...ResponseTimeOverTime.png

<img width="799" alt="jenkins jmeter response time graph" src="https://cloud.githubusercontent.com/assets/300046/12677849/9508bd10-c650-11e5-9fd8-f440d7b7fcae.png">

* Sample file /job/JMeterCI/ws/target/jmeter/...TransactionsPerSecond.png

<img width="799" alt="jenkins jmeter transpersec graph" src="https://cloud.githubusercontent.com/assets/300046/12677894/c6610d68-c650-11e5-8d45-f5eba6bef245.png">

<a name="Resources">
## Resources</a>

A silent video showing the above is at: https://www.youtube.com/watch?v=9WkuapS3Ki0
using https://github.com/smarigowda/jmeter-maven-example