Which types of integration testing use stub?
Software testing is a procedure to test software fitment as per requirement. To understand integration testing on stubs, we need to get clear about what a stub is first of all.Â
What is stub? A stub is a piece of code that is used for other programming functionality. It is used in top-down integration testing. It is used to simulate the behavior of lower-level modules that are not integrated yet.Â
UI LayerÂ
Service Layer:Â
Data Access Layer:  1. Start testing with the UI layer:     The UI layer is tested first, then it will get integrated with the service layer.    And we need to create a stub that simulates the behaviour of the data access layer. 2. Testing using stub:     If the data access layer is not implemented yet, we can use stub to simulate the access layer. Â
So to conclude, stub is used in top-down integration Testing process.
















