Chapter 6 – Test Tools
Mock Object – ISTQB Definition
Last Updated: July 12, 2026 · SoftwareTestPilot QA Team
Official ISTQB Definition
A skeletal or special-purpose implementation of a software component, used to develop or test a component that calls or otherwise depends on it. It replaces the real component for testing and mimics its API but with pre-programmed expectations.
In simple words
A fake dependency you configure to expect specific calls and assert on them afterwards.
Exam tip
Mocks vs stubs: stubs feed data in, mocks verify behavior out.
Related terms
Practice this term in the ISTQB Mock Test
40 CTFL v4.0 questions, 60-minute timer, instant scoring and chapter-wise breakdown.
Practice in Mock Test