Professional Documents
Culture Documents
Unit Testing
• Unit testing, a testing technique using which
individual modules are tested to determine if
there are any issues by the developer himself.
• The main aim is to isolate each unit of the
system to identify, analyze and fix the defects..
• Its goal is to isolate each part of the program
and show that the individual parts are correct.
Techniques
1. Black Box Testing
2. White Box Testing
3. Gray Box Testing
• Advantages
• Reduces Defects in the Newly developed features or
reduces bugs when changing the existing functionality.
• Reduces Cost of Testing as defects are captured in very
early phase.
• Improves design and allows better refactoring of code.
• Unit Tests, when integrated with build gives the quality of
the build as well.
Integration testing
• Units or individual components of the software are tested in a group.
• The focus of the integration testing level is to expose defects at the time
of interaction between integrated components or units.
• The goal of integration testing is to check the correctness of
communication among all the modules.
Types of integration testing
• Incremental integration testing
• Non-incremental integration testing
• Incremental Approach: modules are added in ascending order
one by one or according to need. The selected modules must be
logically related. Generally, two or more than two modules are
added and tested to determine the correctness of functions. The
process continues until the successful testing of all the modules.
• For example: Suppose we have a Flipkart application, we will
perform incremental integration testing, and the flow of the
application would like this:
Flipkart→ Login→ Home → Search→ Add cart → Payment →
Logout