Part 2. Using mountebank
The test in chapter 2 was a behavioral test, but service virtualization can satisfy a wide spectrum of testing needs. Understanding how mountebank fits into that spectrum requires exploring the full capabilities of the tool.
The test we just looked at used basic building blocks of service virtualization—and indeed of any stubbing tool—the ability to evaluate the request to determine how to respond. We’ll look at these capabilities over the course of the next two chapters, including additional context around HTTPS, managing configuration files, and taking advantage of mountebank’s built-in XML and JSON parsing.
Chapters 5 and 6 demonstrate more advanced response generation, allowing a more interesting set of test scenarios. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access