Contact Us

Sanity Testing Tutorial: Methodology & Features

Guides and Tutorials, Software Testing Career

Friday August 4, 2017

Despite there being hundreds of articles, sanity testing has always remained as a misunderstood topic in software testing. To be honest, the confusing terminologies have contributed largely to the misunderstanding. . Here, let us make the concept of sanity testing clear for you.

app testing

Sanity Testing refers to tests that determine whether it is feasible and sensible to proceed with the testing process. It is mostly done to check the health of the application that has been built, which basically is your first step. The tests are performed when some changes are made to the code to ensure proper working of  every functionality of the program. Therefore, this type of testing normally remains undocumented and unscripted since the objective of the system is to check the new functionality and to ensure that the bug has been fixed.

How sanity testing is done?

After a successful regression testing is carried out, which includes testing that verifies the program actually works & performs the same way as it is expected to with the software, sanity testing is performed. It is performed in order to check for defects, which may have cropped up previously and are fixed accordingly and to ensure that no further issues crop up..

Many a time, the “Hello World” program is used for testing. If the program fails to compile or run, the supporting system has a configuration problem. If it works, any problem thereafter lies in the actual application.

Another method is to denote checks which are performed within the program code. This usually includes functions and arguments to see if the outputs are correct.

Reasons to perform sanity testing (Features)

Firstly, sanity testing offers a great speed. Since it has very narrow focus for functionalities to be tested, you don’t need to script or document the findings.

Secondly, sanity testing allows you to plan the next step in testing, ahead of its time. For example, if your test fails, you can dedicate your development team to fix the bugs first and keep aside the rest of the tasks.

Third, Sanity testing can capture any configuration and deployment issues from the initial stages. The test will help you find such errors that can be quickly resolved and allow others to continue testing.

Fourth, at times during the constraints of release time, regression testing cannot be performed to the program build; hence, sanity testing does the work in a much simpler and faster way.

Lastly, Sanity testing can also be performed as an Adhoc testing. Many a time during sanity testing, a set of test cases is run, which can affect the specific area under testing (area in which defect is fixed or area in which new functionality is added),

Final Words

Sanity testing has always been proved as one of the best testing techniques to avoid wasting time and effort. It is used as a quick method to ensure that the previous bugs in the program have been fixed and that the application works fine. It is always defined as a subset of regression testing due to its similarities with the latter. Therefore, make sure to run sanity testing along with other testing methods to ensure the success and overall smooth functioning of the software.



Cost Calc.


Call Us