Monday, July 2, 2012

Unit Testing and Integration Testing.

Unit Testing
  • Testing of individual software components or modules. 
  • Typically done by the programmer and not by testers, as it requires detailed knowledge of the internal program design and code. may require developing test driver modules or test harnesses.
  • The goal of unit testing is to isolate each part of the program and show that the individual parts are correct.
  • A unit test provides a strict, written contract that the piece of code must satisfy. 
  • As a result, it affords several benefits.
Integration testing
  • Integration testing  is the phase in software testing in which individual software modules are combined and tested as a group.
  • It occurs after unit testing and before validation testing. 
  • Integration testing takes as its input modules that have been unit tested, groups them in larger aggregates, applies tests defined in an integration test plan to those aggregates, and delivers as its output the integrated system ready for system testing.
  • Some different types of integration testing are Top Down Testing and Bottom Up Testing.
Top Down Testing
  • Top Down Testing is an approach to integrated testing where the top integrated modules are tested and the branch of the module is tested step by step until the end of the related module.
Bottom Up Testing
  • Bottom Up Testing is an approach to integrated testing where the lowest level components are tested first, then used to facilitate the testing of higher level components. The process is repeated until the component at the top of the hierarchy is tested.

    No comments:

    Post a Comment