What is Sandwich Testing?

Software TestingSoftware & CodingTesting Tools

Sandwich testing is a method of testing that consists of the following− top-down and bottom-up approaches. It incorporates the benefits of both bottom-up and top-down research at the same time. Bottom-up testing begins in the middle layer and progresses upward to the top layer, while top-down testing begins in the middle layer and progresses downward. For the middle layer, the big-bang method is used. From this stage, the bottom-up approach ascends and the top-down approach descends.

Sandwich Testing's approach is as follows:

  • It employs both top-down and bottom-up approaches.
  • Sandwich research is divided into three layers −
    • The primary target layer
    • A layer above the primary target layer
    • A layer under the primary target layer
  • Sandwich testing focuses mostly on the primary target sheet. This checking is chosen based on the system's features and the structure code.
  • If there are more than three levels, it attempts to reduce the number of hubs and drivers.

How to Carry Out Sandwich Testing?

Sandwich research consists of three basic measures, which are shown below.

  • Using stubs, evaluate the user interface in isolation.
  • Drivers are used in evaluating the most basic features.
  • After the whole device has been integrated, only the main objective (middle) layer is left for the final inspection.

What is the Objective of Integration Testing?

Integration Testing is a form of software testing in which individual units are integrated and evaluated together. The aim of this stage of research is to identify flaws in the interaction of interconnected units. Integration testing is supported by the use of test drivers and test stubs.

What are the Approaches to Integration Testing?

Top-down and bottom-up testing techniques are used in mixed integration testing. After the top-level module has been coded and the device reviewed may research begins in a top-down approach. Only after the bottom-level modules are complete will research begin in the bottom-up method.

Difference between Integration Testing and Unit Testing

Unit TestingIntegration Testing
Unit verification is the first test performed in the Software Testing Life Cycle (STLC).Integration testing is typically performed before device testing and after unit testing.

Advantages of Sandwich Testing

  • The sandwich solution is suitable for big programs with many subprojects. When architecture follows a spiral model and the module is as large as a device, sandwich testing may be used.
  • Both the top-down and bottom-up approaches begin at the same time, according to the production plan. Units are inspected and assembled to form a structure. Integration takes place from the bottom up.
  • It requires more money, and large teams execute both bottom-up and top-down testing approaches concurrently or sequentially.

Disadvantages of Sandwich Testing

  • Since one element uses a top-down approach and another uses a bottom-up approach, testing is very expensive.
  • It cannot be used for a smaller device with a high degree of interdependence between modules. It makes sense because each subsystem is as strong as the whole machine.
  • As modules are distinct structures covering separate domains such as ERP items with modules covering different functional areas, various skill sets are needed for a tester at different levels.
raja
Published on 13-May-2021 12:15:57
Advertisements