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.
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 ...