Chapter 12

Model-Based Testing

“By my faith! For more than forty years I have been speaking prose without knowing anything about it.…”

Monsieur Jourdain in Le Bourgeois Gentilhomme

I share the sentiment of Moliere’s Monsieur Jourdain; since the first edition, this book has advocated what we now call Model-Based Testing (MBT). In this chapter, we describe the basic mechanism, discuss how to choose appropriate models, consider the pros and cons of MBT, and provide a short discussion of available tools. Actual examples of MBT are (and have been in the earlier editions) scattered throughout this book.

12.1 Testing Based on Models

The main advantage of modeling system behavior is that the process of creating a model usually results in deeper insights ...

Get Software Testing, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.