Functional testing using JMeter assertions

This recipe will show you how to use JMeter assertions in combination with a Jenkins Job. JMeter can test the responses to its HTTP requests and other samplers with assertions. This allows JMeter to fail Jenkins builds based on a range of JMeter tests. This approach is especially important when starting from an HTML mockup of a web application, whose underlying code is changing rapidly.

The test plan logs in and out of your local instance of Jenkins, checking size, duration, and text found in the login response.

Getting ready

We assume that you have already performed the Creating JMeter test plans and Reporting JMeter performance metrics recipes.


The recipe requires the creation of a user tester1 in ...

Get Jenkins Continuous Integration Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.