单元测试和三明治测试之间的区别
单元测试:
单元测试是软件测试级别的类型,其中测试软件的每个单独组件。单元测试通常由开发人员执行。单元测试不能用于那些在不同模块之间有很多相互依赖的系统。它不允许并行测试。
三明治测试:
三明治测试也称为混合集成测试。三明治测试包括自下而上的方法测试和自上而下的方法测试,因此它利用了自下而上方法和自上而下方法的优点。夹心测试也不能用于不同模块之间有很多相互依赖的系统,它允许并行测试。
单元测试和三明治测试的区别:
S.NO | Unit testing | Sandwich testing |
---|---|---|
1. | In unit testing, software’s module are tested separately. | Sandwich testing comprise the top-down and bottom-up testing. |
2. | Defects are identified easily in unit testing. | Defects are not identified easily in sandwich testing testing. |
3. | In Unit testing does not matter how big project is. | Sandwich Testing is used for very large projects having sub projects. |
4. | Unit testing is cost efficient. | Sandwich testing is not cost efficient. |
5. | Unit testing does not allow parallel testing. | Sandwich testing allows parallel testing. |
6. | Unit Testing can’t be used for those systems which have a lot of interdependence between different modules. | Sandwich Testing also can not be used for those systems which have a lot of interdependence between different modules. |
7. | In Unit testing, there is need of fewer resources for testing. | In Sandwich testing, there is need of large number of resources. |