Foundation Level study guide
Component vs Integration Testing
Component Testing (Unit Testing) focuses on verifying individual modules or functions of code in isolation. Integration Testing verifies the interfaces, data flow, and interactions between those separate components after they have been connected together.
Practical example
When component testing uses isolation, developers may use Stubs (dummy modules simulating a called component) and Drivers (dummy modules simulating a calling component). Integration Testing comes in two forms: Component Integration (testing communication between internal microservices) and System Integration (testing communication between your app and an external API, like PayPal).
Exam scenario and common trap
Scenario: A tester executes a test to verify that the "Calculate Total" function properly sends the final price to the external "Stripe Credit Card API". What test level is this? The Trap: "Component Integration Testing." The Correct Answer: System Integration Testing. Because it crosses the boundary of the internal system to interact with a third-party external service, it operates at a higher architectural level.
Related syllabus sections cover this topic. Reference sections: 2.2.1. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.