What Is Sanity Testing? – A Brief Guide

Software testing is crucial in the development and delivery of software. There are various types of software testing, each with its own function in the software development process. One of the most useful tests among them is sanity testing.

What Is Sanity Testing?

It’s a type of software testing that ensures flaws are repaired and that the modifications don’t cause any new problems. It’s a form of retesting to make sure that any updates or newly introduced features work as planned. The goal of sanity testing is to validate the application’s functionality, not to perform extensive testing. It’s typically used to fix major bugs. It is done to check that fresh code changes are working properly. The goal is not to test the application’s important functionalities, but rather to see if the defects have been fixed. It generally works after a slight adjustment.

Features of Sanity Testing

  1. It doesn’t follow a script.
  2. It enables speedy testing.
  3. It should be carried out without the use of test cases.
  4. Because it tests relatively simple and common functionality, it adds a lot of value to the project.
  5. Because it is not about extensive testing, it takes less time.
  6. It is usually a quick assessment.
  7. It delves into certain functionalities.
  8. It works after regression testing has been completed.
  9. Because sanity testing is not programmed, future references are not available.
  10. It only works on functions that have been modified or are malfunctioning.
  11. It is not automated and must be done by hand.
  12. The testers were the ones who did it.

It’s a type of regression testing that just looks at a few damaged features.

How To Do Sanity Testing?

It will be performed whenever the tester receives a software build that contains minor code or functionality fixes.

It is carried out following the completion of successful regression testing. There are no guidelines for tests.

To begin, we should identify the functionalities as well as the changes made to the code. After that, double-check that the implemented functionalities are working according to the specifications. The tester should then test at random to check that all of the functionalities and modifications are working properly.

The system can be passed for full testing after passing sanity testing.

Example of Sanity Testing

Consider a scenario in which you have a multi-module application. You have a login page form where the user may enter information and log in. Now the user has a new request, which is to include a “Forgot Password” option in the login page that allows him to recover or create his password.

The development team implements the requirement and sends the program to be tested for sanity. To begin, you must do some simple tests on the recently added functionality “Forgot Password.” Then you must ensure that the newly introduced feature does not interfere with existing features, ie, that the login page’s other functions and features are still operational.

If the application detects no problems, it can be tested further. The application should be refused if it isn’t.

Benefits of Sanity Testing

  1. It is quite useful because it detects mistakes at an early stage.
  2. There is no requirement for scripting or documentation.
  3. It takes less time to complete.
  4. Execution is simple.
  5. Simple to comprehend.
  6. It’s utilized when a project undergoes significant changes.
  7. Helps in the rapid identification of flaws with basic functionality.
  8. Sanity testing swiftly determines the current condition of software.
  9. Because it is restricted and deep testing of a few areas of functionality, it gives them the confidence to release software.

Smoke Vs Sanity Testing


Sanity testing, to put it simply, is a checkpoint that determines whether or not additional testing can proceed. It determines whether or not the required features perform as predicted. Although sanity testing is used by testers as a criterion for accepting or rejecting software. Sanity testing is crucial because it saves time when an issue is discovered immediately.

In a word, the purpose of sanity testing is to ensure that the product continues to function even after numerous regression iterations have been completed. As a result, it boosts software release confidence.


Leave a Comment