三种测试

https://www.softwaretestinghelp.com/the-difference-between-unit-integration-and-functional-testing/

------------------
-==============
Unit testing
means testing individual modules of an application in isolation (without any interaction with dependencies) to confirm that the code is doing things right.
-- 只测试单个模块代码, 和其他没有关系  (单个)
-- 单纯在模块内部的代码测试,

Integration testing means checking if different modules are working fine when combined together as a group.

-- 测试这个模块和其他模块的交互功能 (一组)

Functional testing means testing a slice of functionality in the system (may interact with dependencies) to confirm that the code is doing the right things.

-- 界面? (功能测试, 某个功能测试)
-- “Requirement-Based” and “Business scenario-based” are the two forms of functional testing that are carried out.
-- 基于 需求 或者 商业场景的测试。
-- 基于 输入 输出 处理 三个部分的集合

 ----

既要测试对的场景也要测试出错的场景和情况。

 

  Unit testing Integration testing Functional testing
Definition and purpose Testing smallest units or modules individually. Testing integration of two or more units/modules combined for performing tasks. Testing the behavior of the application as per the requirement.
Complexity Not at all complex as it includes the smallest codes. Slightly more complex than unit tests. More complex compared to unit and integration tests.
Testing techniques White box testing technique. White box and black box testing technique. Grey box testing Black box testing technique.
Major attention Individual modules or units. Integration of modules or units. Entire application functionality.
Error/Issues covered Unit tests find issues that can occur frequently in modules. Integration tests find issues that can occur while integrating different modules. Functional tests find issues that do not allow an application to perform its functionality. This includes some scenario-based issues too.
Issue escape No chance of issue escape. Less chance of issue escape. More chances of issue escape as the list of tests to run is always infinite.

你可能感兴趣的:(三种测试)