interview.practice
Software Testing Fundamentals interview questions
Answer aloud before opening each explanation. Focus on the reasoning, not memorized wording.
0/8 saved answers | 8 questions shown
01What does a test actually prove?PrinciplesBeginner
Model answer
Only the behavior exercised by its setup, action, and assertions.
Why
Passing tests cannot guarantee untested scenarios.
02What makes a good unit test?UnitBeginner
Model answer
It is focused, deterministic, readable, and checks observable behavior.
Why
Fast isolated feedback makes logic safe to change.
03Why test edge cases?BoundariesIntermediate
Model answer
Behavior often changes at empty, minimum, maximum, and invalid boundaries.
Why
Boundaries are common defect locations.
04What does an integration test cover?IntegrationIntermediate
Model answer
The contract between cooperating components or infrastructure.
Why
Integration tests catch mismatches hidden by mocks.
05Why query UI by role and accessible name?UIIntermediate
Model answer
It matches user interaction and rewards accessible markup.
Why
Implementation selectors are more fragile and less meaningful.
06Which scenarios deserve browser tests?E2EIntermediate
Model answer
Critical user workflows and high-risk integrations.
Why
Browser tests are valuable but slower and more expensive.
07When does mocking become harmful?DoublesAdvanced
Model answer
When tests verify fake implementation interactions instead of real behavior.
Why
Excessive mocking can let broken integration contracts pass.
08How should a test suite balance levels?StrategyAdvanced
Model answer
Use many fast focused tests and fewer broad expensive tests.
Why
Each risk should be covered at the cheapest level that provides confidence.