Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JMeter Cookbook

You're reading from   JMeter Cookbook 70 insightful and practical recipes to help you successfully use Apache JMeter

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher
ISBN-13 9781783988280
Length 228 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Bayo Erinle Bayo Erinle
Author Profile Icon Bayo Erinle
Bayo Erinle
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. JMeter Fundamentals FREE CHAPTER 2. Handling Responses 3. Building Robust Test Plans with Controllers 4. Testing Services 5. Diving into Distributed Testing 6. Extending JMeter 7. Building, Debugging, and Analyzing the Results of Test Plans 8. Beyond the Basics A. Installing the Supporting Software Needed for this Book Index

Using Interleave and Random Controller in test plans

When designing test plans, sometimes it is useful to simulate the random behavior of users. That is, not have all users in your test plan execute the same flow of events in the same manner. For example, in a typical e-commerce website selling products, it is not unusual to have potential consumers come and shop for different products. Some visit the site with the intention of buying, while some might have just visited the site to compare prices with a competing vendor. So, you could have Consumer A visit the site, browse around, put a few items in their cart, and then check out. Consumer B visits the site, just browses, not adding anything to their cart. As such, for this described scenario, we have two scenarios that we could interleave or randomly pick between.

JMeter provides two built-in controllers that allow us to do just that. These are Interleave and Random Controllers. These two controllers closely resemble each other in functionality...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime