What is Integration Testing?What are the types of integration testing with Examples

What is Integration testing?


  • Testing the data flow between the two features or modules is called integration testing.


  • Let us take an example of a banking application.




  1. So in the above image, there are two users (User A and User B) so in integration testing following thing will be tested:

  • If user A transfers the balance to user B then that amount should be reflected in the user B account balance section.

  • If user A transfers the balance to user B then that amount should be reflected in the user B statement section.

  • If user A transfers the balance to user B then from user A account amount should get deducted and the updated amount should be visible in the balance section of user A account.

  • If user A transfers the balance to user B then that debited amount should be reflected in user A statement.

  • If User A does any bill payment then that bill payment amount should get debited from the balance section of user A account.

  • If user A does bill payment then that bill payment transaction should get reflected in User A statement.


Types of Integration testing






  • Incremental Integration Testing

                         Here we incrementally add the module and then test the data flow between them. Incremental integration testing consist of two types:


  1. Top-down approach.

  2. Bottom-up approach.


  • Top-Down Approach: Here we incrementally add the module such that the added module is the child of the previous module and then we test the data flow from parent module to child module.
Example


  • Bottom-up Approach: Testing the data flow from the child module to the parent module is called a bottom-up approach.
Example :




  • Sandwich Approach: It is a combination of both the bottom-up approach and the top-down approach.

Example :

  • Non-incremental integration testing:

                        Here we randomly pick anyone two modules and test the data flow between them. 



Note :

1)Incremental integration testing is time-consuming but then well organized.

2)Non-incremental integration testing is faster but then not well organized



Comments

Popular posts from this blog

Creating Effective Test Cases for Online Ticket Booking Systems

What is Derived Model?

Test Cases and Test scenarios: Definition, Examples, Template