EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials Software Testing Tutorial Sanity Testing
Secondary Sidebar
Software Testing Tutorial
  • Types of Testing
    • Adhoc Testing
    • Types of System Testing
    • Manual Testing Types
    • Unit Testing Types
    • Unit Testing Benefits
    • Agile Testing
    • What is Agile Testing
    • Acceptance Testing
    • Stress Testing Types
    • Alpha and Beta Testing
    • Application Testing
    • Automation Testing
    • Automation Testing Advantages
    • Benchmark Testing
    • Black Box Testing
    • Domain Testing
    • Dynamic Testing
    • Ecommerce Testing
    • Fuzz Testing
    • Gray Box Testing
    • GUI Testing
    • Installation Testing
    • Interface Testing
    • Interoperability Testing
    • Mainframe Testing
    • Manual Testing
    • Mutation Testing
    • Monkey Testing
    • Negative Testing
    • Penetration Testing
    • Penetration testing phases
    • Penetration testing framework
    • Protocol Testing
    • Recovery Testing
    • Regression Testing
    • Mobile Penetration Testing
    • Accessibility Testing
    • Sanity Testing
    • Scalability Testing
    • Security Testing
    • Spike Testing
    • Stability Testing
    • State Transition Testing
    • Static Testing
    • Gatling Load Testing
    • System Integration Testing
    • Structural Testing
    • Locust Load Testing
    • System Testing
    • Control Flow Testing
    • Unit Testing
    • Cypress testing
    • Volume Testing
    • Web Testing Application
    • What is Exploratory Testing
    • What is Stress Testing
    • What is Usability Testing
    • White Box Testing
    • Types of White Box Testing
    • Compatibility Testing?
    • Use Case Testing
    • Beta Testing
    • Integration Testing
    • Non Functional Testing
    • Non Functional Testing Types
    • What is Functional Testing
    • Functional testing types
    • Cookie Testing
    • Alpha Testing
    • Boundary Value Testing
    • Equivalence Class Testing
    • Glass Box Testing
    • SOA Testing
    • Smoke Testing
    • Visual Testing
    • Visual Paradigm
    • Model-Based Testing
  • Basics
    • What is Software Testing
    • Careers in Software Testing
    • Defect Life Cycle in Software Testing
    • Bug Life Cycle
    • Levels of Software Testing
    • Software Testing Life Cycle
    • Software Tester Work
    • Software Testing Principles
    • Software Testing Services
    • Testing Methodologies
    • Test Approaches
    • Grey Box Testing
    • Types of Software Testing
    • What is a Bug in Software Testing
    • Benefits of Automation Testing
    • What is Automation Testing?
    • Types of Automation
    • Typical Journey of a Software Tester
    • Automation Testing Process
    • Mobile Automation Testing
    • Automation Testing Life Cycle
    • Software Quality Assurance
    • Software Quality Assurance
    • What is Test Environment?
    • Verification and Validation Testing
  • Testing techniques
    • Software Testing Methodologies
    • Black Box Testing Techniques
    • Static Testing Techniques
    • Test Case Design Techniques
    • What is Static Analysis
  • Testing tools
    • Manual Testing Tools
    • Visual Testing Tools
    • Automation Testing Tools
    • Functional Testing Tools
    • GUI Testing Tools
    • Penetration Testing Tools
    • Performance Testing Tools
    • SOA Testing Tools
    • Accessibility Testing Tools
    • What is QTP
    • Regression Testing Tools
    • Security Testing Tools
    • Test Management Tools
    • Defect Management Tools
    • Code Coverage Tools
    • Test Coverage Tools
    • Defect Tracking Tools
    • Continuous Integration Tools
    • Install Bugzilla
    • Test data generation tool
    • Unit Testing Tools
    • Web Testing Tools
    • Stress Testing Tools
    • Performance Monitoring Tools
    • Mobile Testing Tools
    • Responsive Testing Tool
    • Cross Browser Testing Tools
    • Risk Based Testing
    • Database Testing Tools
    • WinRunner
    • What is Squish?
    • CubicTest
    • What is WinRM?
    • Bugzilla Tool
    • Code review tools
    • Penetration Testing Open Source Tools
  • Advance
    • Cyclomatic Complexity
    • Decision Table Testing
    • Decision Tree Algorithm
    • What is Continuous Integration
    • Mantis Bug Tracker
    • Equivalence Partitioning
    • Gantt Chart Software
    • Acceptance Testing Types
    • Load testing tools
    • Install TestNG
    • Install Unity
    • Defect Management Process
    • Test Plan Template
    • Testing Interview Questions
    • Testing of Mobile application
    • What is Test Automation Frameworks
    • Test Automation Framework
    • Application of Automation
    • Test Automation Process
    • Automation Testing Roles and Responsibilities
    • What is Instruction Cycle?
    • What is Cucumber?
    • 15 Best Popular Bug Reporting Tools
    • What is Automated Testing?
    • Software Maintenance Types
    • Types of Penetration Testing
    • Software Reliability
    • Best Gantt Chart Software
    • Code Coverage
    • Branch Coverage
    • Decision Coverage
    • Statement Coverage
    • What is Test Case
    • Types of Test Case
    • What is Test Scenario
    • Formal Review
    • Alpha Beta Pruning
    • What is Cyclomatic Complexity?
    • Test Coverage
    • How to Write Test Case
    • Testing Documentation
    • Performance Testing Life Cycle
    • Test Harness
    • Test Strategy
    • Software Incident Management
    • What is Debugging
    • What is Defect?
    • Listeners in TestNG
  • Inteview Questions
    • Automation Testing Interview Questions
    • Manual Testing Interview Questions
    • ISTQB Interview Questions
    • Cucumber Interview Questions
    • Software Testing Interview Questions
    • Penetration Testing Interview Questions

Related Courses

Software Testing Course

Penetration Training Course

TestNG Training Course

Sanity Testing

By Yashi GoyalYashi Goyal

sanity testing

What is Sanity Testing?

The basic test to evaluate the result is true or not is called sanity testing. It comes under regression testing to ensure the code changes is working as expected. After this testing, developers take decision as to proceed with the build or not. The build is rejected if the test fails to save time and money. It just checks the functionalities of the application and the entire application is not tested. If the deployment is needed immediately, sanity testing is performed. It checks that after bugs fixing, other functionalities are not affected.

Why do we Need Sanity Testing?

Consider a scenario of testing the payment module of a web application, but during the testing, the payment page is not loading properly or the OTP field is not displayed to the user. The testers file a bug and report it to the developers. Developers then fix the bug of the page loading and OTP field of the payment page and submitted back to the testers for testing. There is no reason to do the more rigorous testing around the Payment page if the main bugfixes are not resolved. In this case, testers will now perform the Sanity testing around the Payment page in order to check the bug fixes, i.e. basic issues are resolved or not. It is also important to test if no other issues or bugs are raised in the related functionality because of the fixing of the previous issues.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,328 ratings)

In order to reduce the future time and effort in advance, it is performed before the deep, regression testing of the module. It tests the basic “rationality” of an application before the testing of the entire system.

How does Sanity Testing Work?

As we know that it is a quick and speedy testing, so there is a quick check performed around the application for the bug fixes, new functionality and any other changes made in the application. It is usually unscripted so no documentation and test case creation is done in the Sanity test of an application. The main objective of this is not the exhaustive testing of an application instead it focuses on the testing of a specific component.

When an application is a hand over to the testers for the Sanity test, no deep testing is performed around the whole application. Testers first test the bug fixes, new functionality of the application. It is basically a quick check done by the team of testers in order to pass/ fail the application to verify if it is ready for further in – detail testing. That is why it is also referred to as ‘Tester Acceptance Testing’. It usually saves time and money by failing the application after the quick check if the build is not good enough to go through further testing. After the testing of bug fixes and new functionality, related modules or interrelated functionality of an application is tested in order to verify that no new bugs were introduced because of the code changes or the fixing of previous issues.

For example, if in an application there are 2 modules, module 1 and module 2. Module 1 is related to module 2 as the data is transferred from module 1 to module 2. Previously if the bugs were found in module 2 and after fixing those issues by the developers, a new build is released for testing. Then testers will perform the basic Sanity test of an application of the newly deployed build, module 2 is tested first for the verification of fixed bugs in the new build and if module 2 is working fine, then the module 1 is also tested as both are related to each other in order to check if that fix has impacted the module 1 or not.

Advantages and Disadvantages

Some of the advantages and disadvantages are given below:

Advantages

Some of the advantages are given below:

  • It is narrow and deep. Before testing the entire application, it helps in the testing of a particular component having bug fixes.
  • Since no detailed documentation is required for Sanity testing of an application, no extra time is wasted and testers mainly focus on the testing of bug fixes and affected areas of application.
  • It is very helpful since the efforts are not wasted in the regression testing if the defects are found during the Sanity test and the project is rejected at the early stages.
  • Sometimes, it is very helpful in the early identification of compilation and deployment issues. If the basic functionality of an application is not working fine, or the previous bugs still exist but done from the developer’s end, there would be some merging or compilation issues.

Disadvantages

Some of the disadvantages are given below:

  • It has only a narrow scope. It is not used for the detailed testing of the whole application. It is only used to test the basic functionality of a part of a module of the application.
  • It is used to test the “rationality” of application, unlike smoke testing which checks the “stability” of an application.
  • In case of small size applications, it is not that much helpful as it would consume extra time to verify the functionality of specific component instead of the whole application can be tested at that time.
  • It is generally unscripted and sometimes consumes more time and indirectly increases the overall budget of the project.

Conclusion

The above description clearly explains Sanity testing and the importance of Sanity testing while testing any software application. Some testers always have confusion regarding the Smoke and Sanity test but both are very much different and used for their specific scenarios. Smoke testing is done to verify that the critical functionalities of the whole application are working fine or not. Being a tester, it is very important to understand the difference between the two.

Recommended Articles

This is a guide to Sanity Testing. Here we discuss the basic concept, working, need along with advantages and disadvantages in detail. You can also go through our other suggested articles to learn more –

  1. Smoke Testing vs Sanity Testing
  2. What is Automated Testing?
  3. System Testing
  4. White Box Testing vs Black Box Testing
Popular Course in this category
Software Testing Training (11 Courses, 2 Projects)
  11 Online Courses |  2 Hands-on Projects |  65+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Penetration Testing Training Program (2 Courses)4.9
TestNG Training (4 Courses, 2 Project)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more