JMeter Jenkins Integration


STEP 1: Install JMeter
  
  https://jmeter.apache.org/download_jmeter.cgi

STEP 2: Create a sample script in jemter
  
Start JMeter
  
Go to the bin folder exist in downloaded JMeter folder and Double click on 
ApacheJMeter.jar
Add Thread Group ex. demo and add Number of threads, remp up time and Loop count
Then Add Http Request
Then add Table and Graph Listener
Then Add some assertion points for request verification ex status code, duration , Size
Then Execute Script
Now save script in to default location . ex /Users/apple/Desktop/apache-jmeter-5.4.1/bin STEP 3: Create job in Jenkins First install Performance Trend Per Test Case plugin from plugin manager Create a free style job ex. jmeter jenkins demo Then add following configuration
cd /Users/apple/Desktop/apache-jmeter-5.4.1/bin sh jmeter.sh -Jjmeter.save.saveservice.output_format=xml -n -t /Users/apple/Desktop/apache-jmeter-5.4.1/bin/Demo.jmx -l /Users/apple/Desktop/apache-jmeter-5.4.1/bin/TestResult1.jtl
first part is jmeter script and another is report generation file name and location
Then add peformance Trend report in post build
Then execute build 3-4 times , we will get following reports
Execution Demo