Beginner’s Guide on Integration Testing

  • Cubettech
  • Web App Development
  • 8 years ago
Beginner’s Guide on Integration Testing

Integration Testing Processes

Integration testing is the testing of software applications by combining two or more modules or units as a group to ensure that no issues are left before moving to the system testing/validation testing (testing the system as a whole). It comes after the unit testing (testing individual modules or units) and before the system testing. Integration testing is usually abbreviated as I&T (Integrate and Test).

Why Integration testing?

The purpose of integration testing is to find out the issues related to the functions and performance of the software application when the individual modules are integrated. This is to mainly test the links between the modules.

Take a simple example of emails, integration testing is done by testing the interactions between the login page and the email page. On signing in to the email account, it should take the users to the page where the emails are listed.

A single unit or module may perform well in terms of functional and performance requirement but when they are combined/integrated there may be a lot of issues in it. So we need to integrate modules and test to avoid such issues which may have a serious effect on the project performance and quality.

Integration testing is also necessary in case of changing requirements which cannot be tested in unit testing.

How the Integration testing is done?

To perform a detailed integration testing we have different types of testing approach which are explained below:

Bing Bang Approach in Testing

Top Down Approach

  1. This is an incremental approach where the testing is done from the top to the bottom  following the control flow of the software system.
  2. It is easy to find the defects in this approach since it is an incremental method. Major issues (as per the priority) could be identified and fixed at the earliest.
  3. This method uses dummy programs called ‘stubs’ and ‘drivers’ which simulate the data communication with the calling module.
  4. In this approach there is a possibility for inadequate testing of the lower level modules.
  5. Early prediction of the system prototype is possible since the flow is from the top.
  6. In this approach, it is easier to find a missing branch link.

Top Down Approach in Testing

  • Bottom Up Approach
  1. This is also an incremental approach in which the testing starts from the bottom level modules.
  2. There are chances for missing out some critical issues since the critical modules which are at the top are tested last.
  3. Prototype of the system cannot be predicted earlier in this approach since the bottom level modules are tested first.
  4. We can easily identify bugs with this approach.

Therefore, integration testing focuses on testing multiple modules that are working together.

To be Noted:

  1. Ensure unit testing of each module before integrating those.
  2. Should have a proper detailed design document which explains the interactions between the individual units/modules before starting integration test.
  3. Perform regression testing with automation tool since manual regression may be time-consuming for top down and bottom up.

Bottom Up Approach

  • Sandwich(Hybrid) Testing Approach
  1. This type of approach combines the features of both top down and bottom up approach.
  2. This approach is useful in major projects which contains huge programs like operating systems.
  3. In this both the top down and bottom up method testing are started simultaneously.
  4. Integration testing starts from the middle and moves parallelly up/down as per the two above approaches.
  • Risky – hardset Approach
  1. In this approach the integration testing starts with the risky module first.
  2. This is useful in reducing the defect fixing costs since the risky modules which would affect the project in large scale are given priority and are tested in the early stage.
  3. Perform regression testing with automation tool since manual regression may be time-consuming for top down and bottom up.

I hope that this blog gives you an idea about which method is good for a particular project type. Think about a good one that suits for your project and have fun testing….

Learn More From Our Techies

Table of Contents

    Contact Us


    What's on your mind? Tell us what you're looking for and we'll connect you to the right people.

    Let's discuss your project.