Book Image

JMeter Cookbook

By : Bayo Erinle
Book Image

JMeter Cookbook

By: Bayo Erinle

Overview of this book

Table of Contents (16 chapters)
JMeter Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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

  2. Install the plugins by doing the following:

    • Extract the ZIP archive to a location of your choice

    • Copy the JAR file contained in lib/ext folder of the extracted location to the $JMETER_HOME/lib/ext directory

    • Copy all the JAR files from...