Unit vs Integration vs Functional Testing

by Nataliia Vasylyna | March 1, 2017 9:19 am

There are various types of software testing and the QA specialists should be aware of their specific features and different peculiarities. If the test is engaged in mobile testing, then he should know how to execute performance testing of mobile apps, security testing of mobile systems, etc.

All these software testing types are interrelated. In an ideal scenario, it is necessary to have unit, integration and functional testing[1] conducted to get full test coverage. But still, each of them has own peculiarities.

What Is the Difference Between Unit, Integration and Functional Testing?

  1. Unit testing is performed to check the smallest units or modules of the product system at a time. Integration testing – to check whether two or more combined units/modules operate in a proper way. Functional testing – to check the whole system behavior as per the defined requirements.
  2. Unit testing is not complex as you deal with small code fragments. Integration testing[2] is more complex than unit one. But the most complex among these types is functional testing as the whole system is checked at once.
  3. Testing techniques. While performing unit testing, the white box technique is used. For functional testing, it is applied black box technique. And for integration testing, both black and white box techniques are used, plus grey box testing. There is also a specific approach to this testing technique called top-down testing[3].
  4. Unit testing detects the issues occurred in modules. Integration testing – errors appear during or after the integration process. Functional testing – the scenario based errors.
  5. The possibility of issue escape. Unit testing – no chance. Integration testing – less chance. Functional testing – high chances as the number of test scenarios may be infinite.

Learn more from QATestLab

Related Posts:

Endnotes:
  1. functional testing: https://qatestlab.com/services/We-Are-Professionals-in/functional-testing/
  2. Integration testing: https://qatestlab.com/services/Step-by-Step/Integration-Testing/
  3. top-down testing: https://qatestlab.com/resources/knowledge-center/software-testing-glossary/top-down-testing/
  4. Unit Testing vs Integration Testing: https://blog.qatestlab.com/2016/09/09/unit-integration-testing/
  5. Peculiarities of Testing Levels: https://blog.qatestlab.com/2016/02/15/testing-levels-peculiarities/
  6. Why Is a Healthy Testing Process Crucial? A Full Checklist: https://blog.qatestlab.com/2024/02/15/why-is-a-healthy-testing-process-crucial-a-full-checklist/

Source URL: https://blog.qatestlab.com/2017/03/01/unit-integration-functional/