Following are the reasons behind the
need of integration testing:
- A Module in general is designed by an individual software developer whose understanding and programming logic may differ from other programmers. Integration testing becomes necessary to verify the software modules work in unity.
- At the time of module development, there are wide chances of change in requirements by the clients. These new requirements may not be unit tested and hence integration testing becomes necessary.
- Interfaces of the software modules with the database could be erroneous.
Now let’s take a
look at the different approaches in performing integration testing.
Integration testing
can be mainly classified into four categories:
1. Top-down approach
2. Bottom up approach
3. Sandwich approach
4. Big-bang approach
1. Top-down approach
2. Bottom up approach
3. Sandwich approach
4. Big-bang approach
Let’s discuss
about each type.
- Top-down approach: In this type of approach, top integrated modules are tested first and the branches of the modules are tested step by step until the end of the related module.
But what should we
do when come across a situation where sub
modules are still under
construction??? Need to stop the testing,
until those are fully
implemented?? Not at all required..!!
In this type of
scenario, we will use dummy sub-modules, which can be referred as
“Stub”, to go ahead with our testing.
- Bottom-up approach: In this type of approach, lowest levelcomponents are tested first, and then used to facilitate thetesting of higher level components. The process is repeateduntil the component at the top of the hierarchy is tested.
But similar to the
hurdle just we faced in top-down approach, what should we do when
come across a situation where main modules are still under
construction??? Need to stop the testing, until those are fully
implemented?? No…!!
In this type of
scenario, we will use dummy main-module, which can be referred as
“driver”, to proceed with our testing.
- Sand-wich testing: It is the combination of top-down & bottom-up approaches where both the testing techniques are started simultaneously and meet somewhere in the middle. Suitable for large programs such as operating systems.
- Big-bang testing: It is a bit different from the above three approaches, in which software elements, hardware elements, are combined all at once into overall system, rather than stages.
So friends..!! This
is the technical story behind the integration testing.
Hey…do you know
the other names for Integration testing!!?
This can be also called as
“String Testing” and sometimes
”Thread
Testing”.
Post By:- Deepthi
Nice article..very well explained..
ReplyDeleteExcellent article I have ever found.. Thanks for posting Deepthi.
ReplyDeleteGet to know the use of Stub & Driver..Thank you
ReplyDeletegood post deepthi . good information. it would be good if some more information is added regarding stubs and drivers.
ReplyDeleteRegards
Hi pardhu i will post more information about stub and driver soon
Delete