Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created July 29, 2011 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burtlo/1114481 to your computer and use it in GitHub Desktop.
Save burtlo/1114481 to your computer and use it in GitHub Desktop.
Jenkins - JMeter Performance Test

Requirements

Jenkins Job

  • See the jenkins_job.sh defined below for the shell script that is executed.
  • Publish Performance test result report > Report File: 'results.log'

Test Plan

  • Generate a test plan through JMeter and save it as test_plan.jmx
  • Generate a list of list of request urls that you specify within the test plan.
#!/bin/bash
# Remove any existing results files
rm results.log
# JMeter is stored in the directory above the workspace directory for the job
cd $WORKSPACE/../jakarta-jmeter-2.4/bin
# Execute JMeter through the command-line targeting the test_plan in the performance folder
# within your project (it will contain performance/test_plan.jmx and performance/requests.txt)
java -jar ApacheJMeter.jar -n -t $WORKSPACE/performance/test_plan.jmx -l $WORKSPACE/results.log
/american-idol/photo/paul-mcdonald-and-stefano-langone-dress-up-at-the-american-idol-photo-shoot-for-entertainment-weekly
/bones/articles/bones-spoiler-who-dies-before-the-seasons-out
/bones/articles/vote-now-how-should-bones-handle-emily-deschanels-pregnancy
/real-housewives-of-beverly-hills/photo/taylor-and-russell-armstrong-celebrate-their-daughters-birthday-in-season-1-episode-4-its-my-party-and-ill-spend-if-i-want-to
/american-idol
/the-bachelorette/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment