Professional Documents
Culture Documents
Integration Testing
What is integration testing?
o Integration is defined as the set of
interaction among components.
o Testing the interaction between the modules
and interaction with other systems
externally is called Integration Testing.
Integration test for procedural code has two
major goals:
Component6 Component8
Integration Testing
Methodologies
Top – down integration
Bottom – up integration
Bi – directional integration
System integration
Top – Down Integration
approach
Idea:-
Modules are integrated by moving downward through the control structure.
Modules subordinate to the main control module are incorporated into the
system in either a depth-first or breadth-first manner.
Component5 Component8
Component6 Component7
Order of testing interface
( Breath first & depth first approach )
Step Interface Tested
1 1–2
2 1–3
3 1–4
4 1–2–5
5 1–3–6
6 1 – 3 – 6 – (3 – 7)
7 ( 1 – 2 – 5 ) – ( 1 – 3 – 6 ( 3 – 7)
8 1–4–8
9 ( 1 – 2 – 5 ) – ( 1 – 3 – 6 ( 3 – 7) – ( 1 – 4 – 8)
Incremental Product
development
If a component at a higher level requires a
modification every time a module gets added to
the bottom , then for each component addition
to integration testing needs to be repeated
starting from step1.
Hence whatever may be the software
development model , top – down integration
can be still applied with appropriate repetitions
in integration testing.
Bottom – up Integration
approach
Idea:-
o Modules at the lowest levels are integrated at first, then by moving upward
through the control structure.
Component1 Component4
Component2 Component3
Order of testing interface using bottom up
integration
Step Interface Tested
1 1–5
2 2–6,3–6
3 2–6 -(3–6)
4 4–7
5 1–5–8
6 2 – 6 – (3 – 6) – 8
7 4–7–8
8 ( 1 – 5 – 8 ) – ( 2 – 6 ( 3 – 6) – ( 4 – 7 – 8)
Bi – Directional Integration
It is a combination of top – down and bottom
– up integration approaches work together to
derive integration steps.
Sandwich integration
Component1
Component2 Component5
Component3 Component4
Steps for integration using sandwich testing
Step Interface Tested
1 6–2
2 7–3–4
3 8–5
4 (1–6–2)–(1–7–3–4)–(1–8–5)
System Integration Testing
System integration means that all the
components of the system are integrated and
tested as a single unit.
Two types:-
o Components or sub – system integration
o Final integration testing or system integration
Big – Bang Integration
Testing
The salient point this testing methodology raises,
is that of optimization.
Instead of integrating component by component
and testing, this approach waits till all components
arrive and one round of integration testing is done.
This approach is also called Big – Bang
integration.
It reduce testing effort and removes duplication in
testing.
Choose Integration Method
System scenarios
o Story line
o Life cycle / state transition
o Deployment / implementation stories from customer
o Business verticals
o Battle ground
Cont.…
Use – case scenarios
o It is stepwise procedure on how a user intends to employ a
system with different user roles and associated parameters.
It also holds
o Stories
o Picture
o Deployment details
Use case scenarios terms the users with different roles as actors
Agents
User with a particular role to interact between the actors and
the system are called agents.
Example:
o Actor and system response for ATM system