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:
Unlock full course notes by signing up
Localising a failure in top-down integration
A billing system is being integrated top-down. The main module and three modules below it have been integrated, and all integration tests pass. Next, the ReportBuilder module replaces its stub; this is the only change to the build. ReportBuilder passed its unit tests. The modules it calls are still stubs, and a reviewer checked their fixed return values against the specification. A previously passing integration test is rerun with identical inputs and now reports every invoice total exactly 100 times larger than expected. Which is the most reasonable place to investigate first?
Checking each build before the next replacement
A checkout subsystem uses incremental integration: the team adds one real module at a time and checks the resulting build before adding another. All three modules have passed their isolated tests. The selected top-down plan introduces Checkout, then Payment, then GatewayAdapter. Unavailable callees are represented by stubs.
Arrange the activities from the initial baseline check to the final integrated check. Assume every check passes. Every changed build must pass its check before another stub is replaced.
Tracking interfaces when dependencies are shared
A booking application is integrated in the stages listed below. Initially, only Frontend is real; every other module is represented by a test double. Each added real module remains in the build for all later stages.
For this count, an interface is one distinct directed caller–callee connection shown by an arrow. An interface becomes available for real-to-real testing when both endpoint modules are real. Count each interface once, regardless of how many requests use it. Connections involving a test double are excluded from both columns.
Complete the table with the number of newly available real-to-real interfaces at each stage and the cumulative number available after that stage. Enter exact integers; these are interface counts, not counts of individual test cases.