Chapter 2. Taking mountebank for a test drive

 

This chapter covers

  • Understanding how mountebank virtualizes HTTP
  • Installing and running mountebank
  • Exploring mountebank on the command line
  • Using mountebank in an automated test

In trying to do for pet supplies what Amazon did for books, Pets.com became one of the most spectacular failures of the dot-com bust that occurred around the turn of the millennium. On the surface, the company had everything it needed to be successful, including a brilliant marketing campaign that featured a famous sock puppet. Yet it flamed out from IPO to liquidation in under a year, becoming synonymous with the bursting of the dot-com bubble in the process.

Business-minded folk claim that Pets.com failed because no market existed for ordering pet supplies over the internet. Or it failed because of the lack of a viable business plan...or maybe because the company sold products for less than it cost to buy and distribute them. But as technologists, we know better.

2.1. Setting up the example

2.2. HTTP and mountebank: a primer

2.3. Virtualizing the product catalog service

2.4. Your first test

Summary