This is one of the most frequently asked QA interview questions, and many testers get it wrong. Let's clear up the confusion between smoke testing and sanity testing once and for all.
The Core Difference
[Smoke testing](/glossary/smoke-testing) = "Does the whole build work at a basic level?" [Sanity testing](/glossary/sanity-testing) = "Does this specific fix or feature work correctly?"
Comparison Table
| Feature | Smoke Testing | Sanity Testing | |---------|--------------|----------------| | Purpose | Verify build stability | Verify specific fix/change | | Scope | Broad (entire app) | Narrow (specific area) | | Depth | Shallow | Moderate | | Performed by | QA team or CI/CD | QA engineer | | Timing | After new build | After bug fix | | Documented | Yes (checklist) | Often informal | | Blocks testing | Yes — failed = reject build | No — just that area | | Automatable | Highly recommended | Sometimes |
Real-World Example
Scenario: E-commerce platform, Sprint 15
Smoke test (after build deploy): - Homepage loads ✓ - User can log in ✓ - Product search works ✓ - Add to cart works ✓ - Checkout process starts ✓
Sanity test (after developer fixes "coupon code not applying"): - Apply valid coupon → discount shows ✓ - Apply expired coupon → proper error ✓ - Apply coupon + checkout → discount persists ✓ - Remove coupon → price reverts ✓
The Interview Answer
When asked in an interview, structure your answer as:
- 1.Define both in one sentence each
- 2.Give the key difference (scope vs depth)
- 3.Provide a concrete example
- 4.Mention the relationship — both are important, serve different purposes
This question tests whether you understand testing at a conceptual level, not just execution. For more interview preparation, see our complete QA interview guide.
Where They Fit in the Testing Process
- 1.Developer pushes code → CI builds → Smoke test (automated)
- 2.Smoke passes → QA begins testing
- 3.Developer fixes a bug → Sanity test on the fix
- 4.Sprint complete → [Regression testing](/blog/what-is-regression-testing) before release
Master these concepts with our Manual Testing course.