Difference between Unit Testing and Sandwich Testing

Automation TestingSoftware TestingTesting Tools

As we know that testing is the most important stage in the process of delivery of any application or software as it is only testing which not only validate the quality of an application but also provides an opportunity to the developer to improve its product.

Every application is being developed in some high or low level language which means some code has been written for its development so on the basis of modules that being going to test there is classification of testing namely unit testing and sandwich testing.

Sr. No.KeyUnit TestingSandwich Testing
1DefinitionUnit testing is a testing in which tester tests only single module at a time and not the integrated version of the application.On other hand Sandwich testing is the type of testing where each module is treated as separate target for testing and these modules are getting integrate one by one after testing completed on them.
2ApproachIn case of unit testing single module testing approach is taken in practice.While in case of Sandwich testing it comprise the bottom-up approach testing and top-down approach testing.
3DefectsAs single module is tested in Unit testing so defects get easily identified and are locked as per module.On other hand in case of sandwich testing modules are getting integrated after testing so defects are not easily identified as modules get dependent on each other up to some extent.
4Practice and PreferenceUnit testing is generally doing not depend on the size of project so can be performed in both small and large size of projects.On other hand Sandwich testing mostly preferred for the large size projects as they have more number of modules.
5Parallel TestingParallel testing is not supported in case of Unit testing as single module plays role in case of Unit testing.On other hand in case of Sandwich testing parallel testing is supported as multiple modules can be get tested in parallel.
6Cost effectiveUnit testing have less cost as compare to Sandwich testing as less number of resources are required in this type of testing.On other hand in case of sandwich testing cost is comparatively higher as more number of resources is required in this type of testing.
7PerformancePerformance of unit testing is high as compare to Sandwich testing as single module is get tested at a time.On other hand sandwich testing has lower performance as compare to Unit testing as multiple and integrated modules get tested at same time.
raja
Published on 13-Jan-2020 10:12:31
Advertisements