Skip to main content

Posts

Showing posts with the label Automation

Load testing MongoDB using JMeter

Apache JMeter ( http://jmeter.apache.org/ ) added support for MongoDB since its 2.10 release. In this post I am referring to the latest JMeter release (2.13). A preliminary JMeter setup is needed before starting your first test plan for MongoDB. It uses Groovy as scripting reference language, so Groovy needs to be set up for our favorite load testing tool. Follow these steps to complete the set up: Download Groovy from the official website ( http://www.groovy-lang.org/download.html ). In this post I am referring to the Groovy release 2.4.4, but using later versions is fine. Copy the groovy-all-2.4.4.jar to the $JMETER_HOME/lib folder. Restart JMeter if it was running while adding the Groovy JAR file. Now you can start creating a test plan for MongoDB load testing. From the UI select the MongoDB template ( File -> Templates... ). The new test plan has a MongoDB Source Config element. Here you have to setup the connection details for the database to be tested: The Threa...

Automating JMeter test plans in Jenkins (aka A Jenkins plugin a day... Performance Plugin)

JMeter ( http://jmeter.apache.org/ ) is an Open Source tool written in Java to test system performance simulating different types of heavy load on the system under test using different protocols (HTTP, SOAP, JDBC, LDAP, JMS, etc.). This post is specific for people who want to understand how to automate JMeter test plans execution using Jenkins: I am assuming the reader has good knowledge of JMeter and Maven and omitting some JMeter and Maven features details. The JMeter release I am referring to in this post is the 2.12. Test plans in JMeter can be executed by command line or through its Java Swing GUI. Running through Jenkins doesn't require them both. You need to use just Jenkins (of course), Maven and the Performance Plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin ). You can use the JMeter GUI just to make changes to a test plan. Create the test plan. Let's create a simple test plan first. Suppose it is a HTTP test plan. You can start from Web...