UGC-NET, GATE, NIELIT (O/A/B Level), KVS/NVS Computer Teacher, PGDCA, BCA, MCA, B-Tech व All India IT Exam विशेष नोट्स: इस अध्याय में हम Regression Testing vs Smoke Testing vs Sanity Testing Comparison (रिग्रेशन, स्मोक और सैनिटी टेस्टिंग के बीच सटीक अंतर) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और राष्ट्रीय स्तर की परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Smoke testing, sanity testing, and regression testing are distinct software quality gates. Smoke testing verifies basic build stability, sanity testing checks specific bug fixes or new features, and regression testing ensures existing functionality remains intact after code changes.
अध्याय सार: स्मोक टेस्टिंग, सैनिटी टेस्टिंग और रिग्रेशन टेस्टिंग सॉफ्टवेयर गुणवत्ता के अलग-अलग चरण हैं। स्मोक टेस्टिंग बिल्ड की बुनियादी स्थिरता जांचती है, सैनिटी टेस्टिंग विशिष्ट बग फिक्स की पुष्टि करती है, और रिग्रेशन टेस्टिंग सुनिश्चित करती है कि कोड बदलाव के बाद पुरानी कार्यक्षमता खराब न हो।
Regression Testing vs Smoke Testing vs Sanity Testing Comparison: Detailed Notes & Architecture (रिग्रेशन, स्मोक और सैनिटी टेस्टिंग के बीच सटीक अंतर)
1. Smoke Testing (Build Verification Testing) (स्मोक टेस्टिंग (बिल्ड वेरिफिकेशन टेस्टिंग))
[EN] Smoke testing is a shallow, wide test performed on a new build to verify that critical end-to-end functionalities (like app launch, login, and core navigation) work. If a build fails smoke testing, it is rejected immediately without wasting QA effort on detailed testing.
[HI] स्मोक टेस्टिंग नए बिल्ड पर की जाने वाली एक सतही और व्यापक जांच है जो सुनिश्चित करती है कि ऐप लॉन्च और लॉगिन जैसी मुख्य कार्यक्षमता काम कर रही है। फेल होने पर बिल्ड को तुरंत अस्वीकार कर दिया जाता है।
2. Sanity Testing (Targeted Verification) (सैनिटी टेस्टिंग (लक्षित सत्यापन))
[EN] Sanity testing is a narrow, deep test performed after receiving a build with minor code changes or bug fixes. It verifies that the specific fixed module and its immediate dependencies work as expected. Sanity testing is usually unscripted and performed by testers.
[HI] सैनिटी टेस्टिंग छोटे कोड बदलाव या बग फिक्स के बाद की जाने वाली संकीर्ण और गहरी जांच है। यह पुष्टि करती है कि विशिष्ट फिक्स किया गया मॉड्यूल सही काम कर रहा है।
3. Regression Testing (Full Impact Check) (रिग्रेशन टेस्टिंग (पूर्ण प्रभाव जांच))
[EN] Regression testing re-executes previously passed test cases across the application to ensure that recent bug fixes, enhancements, or refactoring did not introduce unintended side effects. Because it is repetitive and broad, regression suites are prime candidates for test automation.
[HI] रिग्रेशन टेस्टिंग यह सुनिश्चित करने के लिए पुराने टेस्ट केस दोबारा चलाती है कि नए बदलावों से मौजूदा फीचर्स में कोई नई खराबी न आई हो। इसे आमतौर पर ऑटोमेट किया जाता है।
4. Key Distinctions for Exams (परीक्षा के लिए मुख्य अंतर)
[EN] Smoke = 'Does the build start and basic flows work?' (Wide & Shallow). Sanity = 'Did the specific fix work?' (Narrow & Deep). Regression = 'Did the change break anything else?' (Broad & Automated).
[HI] स्मोक = बुनियादी बिल्ड स्थिरता (व्यापक और सतही)। सैनिटी = विशिष्ट बग फिक्स जांच (संकीर्ण और गहरी)। रिग्रेशन = पुराने फीचर्स की सुरक्षा (व्यापक और ऑटोमेटेड)।
Syntax, Formula & Technical Example (Regression Testing vs Smoke Testing vs Sanity Testing Comparison)
# CI/CD Pipeline Quality Gates
1. Build App -> Run Smoke Suite (5 mins: Login, Home, DB Connect)
2. Bug Fix Build -> Run Sanity Suite (15 mins: Fixed Module)
3. Pre-Release -> Run Full Regression Suite (2 hrs: Automated E2E)
Regression Testing vs Smoke Testing vs Sanity Testing Comparison Quick Reference & Comparison Table
| Testing Type | Scope & Depth | Key Exam Fact |
|---|---|---|
| Smoke Testing | Wide and Shallow | Build Verification; accept/reject build |
| Sanity Testing | Narrow and Deep | Subset of regression for specific fixes |
| Regression Testing | Broad and Thorough | Detects unintended side effects; automated |
| Unit Testing | Single Function/Class | Performed by developers (white-box) |
Regression Testing vs Smoke Testing vs Sanity Testing Comparison Top 20 Bilingual MCQs with Answers
Q1. Which testing is also known as 'Build Verification Testing'?
(किस टेस्टिंग को 'बिल्ड वेरिफिकेशन टेस्टिंग' भी कहा जाता है?)
(A) Stress Testing
(B) Sanity Testing
(C) Smoke Testing
(D) Regression Testing
Correct Answer: (C)
[EN] Smoke testing verifies whether a new build is stable enough for further testing.
[HI] स्मोक टेस्टिंग जांचती है कि नया बिल्ड आगे की टेस्टिंग के लिए स्थिर है या नहीं।
Q2. Which testing is described as 'narrow and deep'?
(किस टेस्टिंग को 'संकीर्ण और गहरी' (narrow and deep) कहा जाता है?)
(A) Sanity Testing
(B) Smoke Testing
(C) Load Testing
(D) Alpha Testing
Correct Answer: (A)
[EN] Sanity testing focuses deeply on a specific changed module or bug fix.
[HI] सैनिटी टेस्टिंग किसी विशिष्ट बदले गए मॉड्यूल पर गहराई से ध्यान केंद्रित करती है।
Q3. What is the primary goal of Regression Testing?
(रिग्रेशन टेस्टिंग का मुख्य उद्देश्य क्या है?)
(A) To check UI colors only
(B) To ensure new code changes have not broken existing features
(C) To test system performance under 10,000 users
(D) To replace unit testing
Correct Answer: (B)
[EN] Regression testing catches unintended side effects in existing functionality.
[HI] रिग्रेशन टेस्टिंग मौजूदा कार्यक्षमता में अनपेक्षित दुष्प्रभावों को पकड़ती है।
Q4. Which testing is most suitable for automation in CI/CD pipelines?
(CI/CD पाइपलाइन में ऑटोमेशन के लिए कौन सी टेस्टिंग सबसे उपयुक्त है?)
(A) Ad-hoc Testing
(B) Regression Testing (and Smoke Testing)
(C) Exploratory Testing
(D) Usability Testing
Correct Answer: (B)
[EN] Repetitive regression suites benefit enormously from automation tools like Selenium or Cypress.
[HI] दोहराए जाने वाले रिग्रेशन सूट को ऑटोमेशन से बहुत लाभ होता है।
Q5. Sanity testing is a subset of which testing?
(सैनिटी टेस्टिंग किस टेस्टिंग का एक सबसेट है?)
(A) Security Testing
(B) Penetration Testing
(C) Regression Testing
(D) Performance Testing
Correct Answer: (C)
[EN] Sanity testing is a targeted subset of regression testing.
[HI] सैनिटी टेस्टिंग, रिग्रेशन टेस्टिंग का एक लक्षित सबसेट है।
Q6. If a new build crashes on startup, which test catches it first?
(यदि कोई नया बिल्ड स्टार्टअप पर क्रैश हो जाता है, तो कौन सा टेस्ट इसे सबसे पहले पकड़ता है?)
(A) Sanity Testing
(B) Beta Testing
(C) Smoke Testing
(D) Soak Testing
Correct Answer: (C)
[EN] Smoke testing runs immediately on a new build to catch showstopper crashes.
[HI] स्मोक टेस्टिंग नए बिल्ड पर तुरंत चलकर गंभीर क्रैश को पकड़ती है।
Q7. Which testing is typically unscripted and relies on tester intuition for a quick check?
(कौन सी टेस्टिंग आमतौर पर अनस्क्रिप्टेड होती है और त्वरित जांच के लिए टेस्टर के अनुभव पर निर्भर करती है?)
(A) Regression Testing
(B) Compliance Testing
(C) Formal Verification
(D) Sanity Testing
Correct Answer: (D)
[EN] Sanity testing is often performed quickly without formal test scripts.
[HI] सैनिटी टेस्टिंग अक्सर बिना औपचारिक स्क्रिप्ट के तेजी से की जाती है।
Q8. When is Regression Testing performed?
(रिग्रेशन टेस्टिंग कब की जाती है?)
(A) Only after product retirement
(B) After bug fixes, new feature additions, or code refactoring
(C) Only before writing any code
(D) Only by end users
Correct Answer: (B)
[EN] Any code modification triggers regression testing.
[HI] किसी भी कोड बदलाव के बाद रिग्रेशन टेस्टिंग की जाती है।
Q9. Which testing is described as 'wide and shallow'?
(किस टेस्टिंग को 'व्यापक और सतही' (wide and shallow) कहा जाता है?)
(A) Fuzz Testing
(B) Mutation Testing
(C) Sanity Testing
(D) Smoke Testing
Correct Answer: (D)
[EN] Smoke testing covers all major modules lightly.
[HI] स्मोक टेस्टिंग सभी प्रमुख मॉड्यूल को हल्के ढंग से कवर करती है।
Q10. Who typically performs Smoke Testing?
(आमतौर पर स्मोक टेस्टिंग कौन करता है?)
(A) Only End Users
(B) Only HR
(C) Only Database Administrators
(D) QA Engineers (or automated CI pipelines)
Correct Answer: (D)
[EN] QA or CI/CD runs smoke tests before accepting a build.
[HI] QA या CI/CD बिल्ड स्वीकार करने से पहले स्मोक टेस्ट चलाते हैं।
Q11. What happens if Smoke Testing fails?
(यदि स्मोक टेस्टिंग विफल हो जाती है तो क्या होता है?)
(A) The build is rejected and sent back to developers
(B) The app is released to production
(C) The database is deleted
(D) Regression testing is skipped and signed off
Correct Answer: (A)
[EN] A failed smoke test halts further QA on that broken build.
[HI] फेल होने पर टूटे हुए बिल्ड को वापस डेवलपर्स के पास भेज दिया जाता है।
Q12. Which of the following is a Black-Box testing technique?
(निम्नलिखित में से कौन सी ब्लैक-बॉक्स टेस्टिंग तकनीक है?)
(A) Smoke, Sanity, and Regression Testing
(B) Branch Coverage
(C) Cyclomatic Complexity
(D) Statement Coverage
Correct Answer: (A)
[EN] All three focus on functional behavior rather than internal code structure.
[HI] ये तीनों आंतरिक कोड के बजाय कार्यात्मक व्यवहार पर ध्यान केंद्रित करती हैं।
Q13. What does 'Retesting' mean in contrast to Regression Testing?
(रिग्रेशन टेस्टिंग के विपरीत 'रीटेस्टिंग' का क्या अर्थ है?)
(A) Testing performance
(B) Testing without requirements
(C) Testing the exact failed test case again after a bug fix
(D) Testing unrelated modules
Correct Answer: (C)
[EN] Retesting verifies the specific bug fix; regression checks the rest of the app.
[HI] रीटेस्टिंग विशिष्ट बग फिक्स की जांच करती है; रिग्रेशन बाकी ऐप की।
Q14. In Agile sprints, when is a full Regression Suite usually executed?
(एजाइल स्प्रिंट्स में, पूर्ण रिग्रेशन सूट आमतौर पर कब चलाया जाता है?)
(A) At the end of a sprint or before a release
(B) Before requirements are written
(C) Never
(D) Only once a year
Correct Answer: (A)
[EN] Automated regression runs nightly or at sprint boundaries.
[HI] ऑटोमेटेड रिग्रेशन रात में या स्प्रिंट के अंत में चलाया जाता है।
Q15. Which testing is derived from hardware testing where engineers powered on a board to see if it smoked?
(कौन सी टेस्टिंग हार्डवेयर टेस्टिंग से आई है जहाँ इंजीनियर बोर्ड चालू करके देखते थे कि धुआं तो नहीं निकल रहा?)
(A) Gorilla Testing
(B) Smoke Testing
(C) Regression Testing
(D) Sanity Testing
Correct Answer: (B)
[EN] The term 'smoke test' originated in hardware/plumbing testing.
[HI] 'स्मोक टेस्ट' शब्द की उत्पत्ति हार्डवेयर टेस्टिंग से हुई थी।
Q16. Can Smoke Testing be automated?
(क्या स्मोक टेस्टिंग को ऑटोमेट किया जा सकता है?)
(A) Yes, it is commonly automated in CI/CD pipelines
(B) No, it must always be manual
(C) Only in Python
(D) Only for mobile apps
Correct Answer: (A)
[EN] Automated smoke tests run on every pull request or build.
[HI] हाँ, इसे CI/CD पाइपलाइन में आमतौर पर ऑटोमेट किया जाता है।
Q17. Within Regression Testing vs Smoke Testing vs Sanity Testing Comparison, which testing type directly maps to: "Wide and Shallow"?
(Regression Testing vs Smoke Testing vs Sanity Testing Comparison में कौन सा Testing Type सीधे "Wide and Shallow" से संबंधित है?)
(A) Regression Testing
(B) Unit Testing
(C) Smoke Testing
(D) Sanity Testing
Correct Answer: (C)
[EN] In Regression Testing vs Smoke Testing vs Sanity Testing Comparison, 'Smoke Testing' handles 'Wide and Shallow' (Build Verification; accept/reject build).
[HI] Regression Testing vs Smoke Testing vs Sanity Testing Comparison में 'Smoke Testing' का कार्य/विवरण 'Wide and Shallow' (Build Verification; accept/reject build) है।
Q18. Which option accurately describes 'Sanity Testing' in Regression Testing vs Smoke Testing vs Sanity Testing Comparison?
(Regression Testing vs Smoke Testing vs Sanity Testing Comparison के संदर्भ में 'Sanity Testing' की सही विशेषता कौन सी है?)
(A) Narrow and Deep
(B) Broad and Thorough
(C) Wide and Shallow
(D) Single Function/Class
Correct Answer: (A)
[EN] 'Sanity Testing' provides 'Narrow and Deep' — key point: Subset of regression for specific fixes.
[HI] 'Sanity Testing' का मुख्य विवरण 'Narrow and Deep' है (Subset of regression for specific fixes)।
Q19. In Regression Testing vs Smoke Testing vs Sanity Testing Comparison, identify the correct parameter for the specification: "Broad and Thorough".
(Regression Testing vs Smoke Testing vs Sanity Testing Comparison में "Broad and Thorough" विवरण किस विकल्प के लिए सही है?)
(A) Unit Testing
(B) Regression Testing
(C) Sanity Testing
(D) Smoke Testing
Correct Answer: (B)
[EN] 'Regression Testing' corresponds to 'Broad and Thorough' (Detects unintended side effects; automated).
[HI] 'Regression Testing' का संबंध 'Broad and Thorough' (Detects unintended side effects; automated) से है।
Q20. Considering Regression Testing vs Smoke Testing vs Sanity Testing Comparison, what key behavior defines 'Unit Testing'?
(Regression Testing vs Smoke Testing vs Sanity Testing Comparison में 'Unit Testing' की मुख्य भूमिका या मान क्या है?)
(A) Wide and Shallow
(B) Narrow and Deep
(C) Single Function/Class
(D) Broad and Thorough
Correct Answer: (C)
[EN] 'Unit Testing' represents 'Single Function/Class' (Performed by developers (white-box)).
[HI] 'Unit Testing' का अर्थ/मान 'Single Function/Class' है (Performed by developers (white-box))।
Regression Testing vs Smoke Testing vs Sanity Testing Comparison — Exam FAQs
Q1: What is the exact difference between Smoke Testing and Sanity Testing?
स्मोक टेस्टिंग और सैनिटी टेस्टिंग के बीच सटीक अंतर क्या है?
[EN] Smoke testing checks overall build stability (wide and shallow) on an initial build, while sanity testing checks specific bug fixes or changes (narrow and deep) on a stable build.
[HI] स्मोक टेस्टिंग शुरुआती बिल्ड की समग्र स्थिरता जांचती है, जबकि सैनिटी टेस्टिंग स्थिर बिल्ड पर विशिष्ट बग फिक्स की जांच करती है।
Q2: Is Sanity Testing the same as Retesting?
क्या सैनिटी टेस्टिंग और रीटेस्टिंग एक ही हैं?
[EN] They are related: Retesting verifies the exact failed test case, while Sanity testing also checks the surrounding module and related functionality.
[HI] वे संबंधित हैं: रीटेस्टिंग सटीक फेल टेस्ट केस की जांच करती है, जबकि सैनिटी टेस्टिंग आसपास के मॉड्यूल की भी जांच करती है।
Q3: Why can't we run full Regression Testing on every single commit?
हम हर एक कमिट पर पूर्ण रिग्रेशन टेस्टिंग क्यों नहीं चला सकते?
[EN] Full regression suites can take hours; running them on every commit slows down developer feedback, so fast smoke tests run per commit and full regression runs nightly or pre-release.
[HI] पूर्ण रिग्रेशन सूट में घंटों लग सकते हैं, इसलिए हर कमिट पर तेज स्मोक टेस्ट और रात में पूर्ण रिग्रेशन चलाया जाता है।
Post a Comment
Post a Comment