Difference Between Smoke and Sanity Testing

Learn via video courses
Topics Covered

Overview

Smoke and Sanity testing are both done on the build. When a source code is converted using commands to standalone software deployed on the server is called build. The code is not running on the server using eclipse or visual studio code IDE.

The testing team tests the deployed build only to check if there are any bugs in the system.

Transform Your Career

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program

Introduction

On a project simultaneously, multiple developers are working on their respective functionalities. They are running and developing the code on their local system. The merged code is deployed on the server.

There are three server types: a development server, a testing server, and a production server. The testing server is the one where smoke and sanity testing is done. Nowadays, the testing server could be a virtual environment from Saucelabs, BrowserStack, etc.

Scaler Placement Report and Statistics

₹23L
AVG CTC
SCALER PLACEMENT PROOF

Scaler learners achieved 2.5x salary growth with average post-Scaler CTC reaching ₹23L.

11,000+placements
650+companies
Verified data

What is Smoke Testing?

Smoke testing is done to validate if all application functionalities are working fine. Both developers and testers do smoke testing on the build. The application performance on the local system is always different from that on the server. Hence, it's a different environment setup.

After a build is deployed, say on Day 1, smoke testing is done to test functionality A, B. After 15 days, another build is deployed where smoke testing is done to test functionality A, B, C, D.

Features of Smoke Testing

  1. Smoke testing is done to validate if the build is working fine on the server.
  2. Both developers and testers do smoke testing.
  3. Smoke testing tests the functionality. If a bug is found, the code is fixed, build is deployed again.
  4. Smoke testing is done on the test environment. The application behavior on the local system vs. server is a lot different.

Turn Learning into Career Growth

1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary
1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary

What is Sanity Testing?

Sanity testing is regression testing done on the build after the bugs are fixed. Regression testing ensures that changes on one part of the code have not affected the rest of the application.

For example, If a site has payment integration, but Gpay had some issues. In sanity testing, Features of Gpay would be tested and ensured that the rest of the UPI integrations are working just fine.

Sanity testing is done only by the testers. Post sanity testing, only the bug is closed.

Features of Sanity Testing

  1. Sanity testing is regression testing done by testers on the server.
  2. Sanity testing is done to check whether the bug is fixed.
  3. Sanity testing is done after smoke testing.
  4. Sanity testing is reported in the bug cycle.

Difference between Smoke Testing and Sanity Testing

CriteriaSmoke TestingSanity Testing
DefinitionSmoke testing is done to test the functionalities working fine on the build server.Sanity testing use case is to test the build that new changes have not affected the old code.
UsersSmoke testing is done by both developers and testers.Sanity testing is done only by the testers
PurposeSmoke testing is done to test that all the features listed in the requirements document are working fine.Sanity testing is done for regression testing. That is rest of the product is working fine.
ReportSmoke testing results are reported in RTM.Sanity testing result is reported in the bug cycle.
ExampleTesting features of a site on a testing environment.Regression testing ensures the bug is fixed and the rest of the features also work fine.

Conclusion

  1. Smoke testing tests all the requirements listed by the client in RTM are working fine. Smoke testing is done on the build.
  2. Sanity testing ensures new code has not affected the previously validated features.
  3. Smoke testing is done by both developers and testers, whereas the testers only do Sanity testing.
  4. Smoke testing is done first, and then on new features, Sanity testing is done.
Hiring Partners:
GoogleGoogleAmazonAmazonMicrosoftMicrosoftFlipkartFlipkartAdobeAdobe1200+ more