O'Reilly logo

JMeter Cookbook by Bayo Erinle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Dummy Sampler

Dummy Sampler is one of the most useful components you will come across. This sampler generates responses with the values already defined. For example, this can be very handy when used in combination with postprocessors such as the RegExp extractor, BeanShell postprocessor, CSS/JQuery extractor, BSF postprocessor, and so on. It cuts down script development and debugging time since you don't have to be repetitive with test executions or wait for certain conditions in the application under test to be met.

How to do it…

In this recipe, we will use Dummy Sampler with test plans to debug and extract information for a response using the BSF postprocessor. Perform the following steps:

  1. Download the standard set of plugins from http://jmeter-plugins.org/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required