Sandwich integration of a weather station

The firmware for an automatic weather station has nine unit-tested modules in a tree-shaped call hierarchy. Station is the main module and calls Sampler, Uplink and Display. Sampler calls TempSensor, HumiditySensor and PressureSensor. Uplink calls Encoder and Radio. Display calls no other module.


The team plans a sandwich integration with Sampler, Uplink and Display as the target layer. It writes one stub for each called module that is absent, and one driver for each calling module that must be simulated; a single driver exercises all of that module's callees. Give each answer as a whole number:

  • the number of stubs in the sandwich plan,
  • the number of drivers in the sandwich plan,
  • the number of stubs a pure top-down plan would need instead.
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Strategies for Testing Large Systems Questions: