DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Set Theory Fundamentals For Software Testing
  • The Essential Guide To Effective Software Testing
  • Effective Testing Strategies for Salesforce Custom Applications
  • How to Avoid Defect Leakages in Software Testing

Trending

  • The Cypress Edge: Next-Level Testing Strategies for React Developers
  • Cookies Revisited: A Networking Solution for Third-Party Cookies
  • Start Coding With Google Cloud Workstations
  • Measuring the Impact of AI on Software Engineering Productivity
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Testing, Tools, and Frameworks
  4. What Are the Real-Time Examples of Smoke and Sanity Testing?

What Are the Real-Time Examples of Smoke and Sanity Testing?

Here are some real examples of smoke and sanity testing and the implications for testing using each.

By 
Amandeep Kadd user avatar
Amandeep Kadd
·
Jun. 16, 20 · Opinion
Likes (2)
Comment
Save
Tweet
Share
34.3K Views

Join the DZone community and get the full member experience.

Join For Free

Today, almost every business is effectively dependent on software and before these are released for their users, software testing becomes crucial. Software testing is a wide concept with different testing types and each testing type has a different purpose in the software development lifecycle (SDLC). 

Among the many different types of testing, smoke testing and sanity testing are the two most confusing terms as these two revolve around the software build. However, these two tests help teams to overcome the functional complexities in the program.

The software testing types are broadly classified as functional testing and non-functional testing. Under functional testing, there are a number of test practices that include unit testing, integration testing, system testing, interface testing, smoke testing, sanity testing, acceptance testing, etc. From these functional testing types, smoke testing and sanity testing are the most confusing terms.

These two practices revolve around software build, i.e. smoke testing is performed on the initial software build; while sanity testing is performed after a software build is received. Here, the software build is the process by which source code is transformed into a standalone form in order to run on a system. With the effective performance of smoke testing and sanity testing, the bugs and defects in the functional complexities are resolved at the early stages of SDLC.

What Is Smoke Testing?

Smoke testing is the type of software testing that is performed during the initial software build. Thus it makes sure that all the critical functionalities of the program are resolved and the programs work effectively. Smoke tests can be performed either manually or with automation. 

Also, for executing these smoke tests, there is no need to write any new test cases, rather a crucial test case that is already written by programmers can be picked.

Smoke testing is the subset of acceptance testing and the main objective of this testing is to validate the newly created build’s stability in order to face more rigorous testing.

Example of Smoke Testing Test Case

Considering a scenario such as validating the login credentials. Here, the login functionality of the application has to ensure that only a registered user is allowed to log in with a valid username and password. 

Now, the steps required to perform the test are launching the application, navigating to the login page, entering a valid username and password, and then clicking on the login button.

Now, if the logins are correct, then the actual result will be as expected, i.e., the login is successful, or else the status of the test is declared as a fail.

What Is Sanity Testing?

Sanity testing is the type of software testing that is performed after a software build is received with changes in functionality and code. Sanity testing is performed in order to assure that the bugs have been fixed and there are no other bugs originating with the new changes. 

Sanity testing doesn’t focus on core functionalities; rather, it focuses on verifying the rationality and correctness of the software.

The main objective of sanity testing is to ensure that there are no bugs or false results in the component processes.

Example of Sanity Testing Test Case

Consider a project, where there are five modules such as home page, login page, new user creation, user detail page, and task creation. As per the requirements, the username on the login page should not accept less than six characters, and the bug is created when a username with less than six characters is accepted.

The bug is then reported to the development team for fixing by the testing team. Now, the development team fixes the issue and again passes it on to the testing team to recheck. The testing teams then check that the bug fixed by the development team is not affecting the functionality of other modules. This way of testing the extreme functionalities of the modules and not going into detail is nothing but sanity testing.

Conclusion

The above-mentioned information is about the importance of smoke testing and sanity testing with a test case example. Both the testing types have significant importance in eliminating the bugs and defects in the software at the early stage. 

Leverage functional testing services from leading QA testing teams and make your software defect and bug-free at the early stage of SDLC.

Smoke testing (software) Software testing Functional testing

Opinions expressed by DZone contributors are their own.

Related

  • Set Theory Fundamentals For Software Testing
  • The Essential Guide To Effective Software Testing
  • Effective Testing Strategies for Salesforce Custom Applications
  • How to Avoid Defect Leakages in Software Testing

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!