Sanity Testing is the subset of Regression Testing and it is performed when we do not have enough time for doing testing.
Sanity testing is the surface level testing where QA engineer verifies that all the menus, functions, commands available in the product and project are working fine.
Sanity testing is performed after the build has clear the Smoke test and has been accepted by QA team for further testing, sanity testing checks the major functionality with finer details.
Sanity testing is the surface level testing where QA engineer verifies that all the menus, functions, commands available in the product and project are working fine.
Sanity Testing Example
For Example in a project there are five modules like login page, home page, user detail page, new user creation, and task creation etc. So we have the bug in login page like on login page username field accepts the less than six alpha-numeric characters which are against the requirements as in requirements it is specified that username should not be below than six characters but as username accepts the less than six characters it is the bug.
So now the bug is reported by the testing team to the developer team to fix it. When the developing team fixes the bug and passed it to testing team than the testing team checks the other modules of the application means checks that fix bug does not affect the functionality of the other modules but keep one point always in mind that testing team only checks the extreme functionality of the modules, do not go deep to test the details because of the short time so this is the sanity testing.
Sanity testing is performed after the build has clear the Smoke test and has been accepted by QA team for further testing, sanity testing checks the major functionality with finer details.
When we Perform Sanity Testing?
Sanity testing is performed when development team needs to know quick state of the product after they have done changes in the code or there is some controlled code change in a feature to fix any critical issue, and stringent release time-frame does not allow complete regression testing.
Conclusion:
Sanity testing will be done mostly after retest (retest will be done after fixing the bug). We always use Script for Smoke but do not for sanity.
Related Post
Complete Difference Between Sanity and Regression Testing
Related Post
Complete Difference Between Sanity and Regression Testing
Distinction between Sanity and Regression Testing
Sanity Testing
|
Regression Testing
|
1. Sanity testing is a surface level testing where QA engineer verifies that all the menus, functions and commands available/presented in the product are working fine.
|
1. Regression testing is not a surface level testing.
|
2. Sanity testing is considered as a subset of regression testing.
|
2. Regression testing is not considered as a subset of any.
|
3. This testing is performed/executed when testers have not much/enough time for doing testing.
|
3. This testing is performed/executed when tester�s have enough time for testing.
|
4. Sanity testing is usually conducted manually not by using any automation tools.
|
4. Regression testing may be conducted/consider manually or using automated tools.
|
5. Performing this type of testing will not enlarge the product/project cost and budget because it didn't require much manpower and time.
|
5. Performing this type of testing definitely will enlarge the product cost and budget because it requires more manpower and time.
|
6. Not complete test cases are executed/ performed in the product during sanity testing.
|
6. During this testing complete test cases are executed/ performed in the product.
|
7. During this testing tester test the application or product with finer details.
|
7. During this testing tester test the application or product with more details.
|
8. We do not use script for sanity testing.
|
8. We use script for regression testing.
|
Conclusion
At end we conclude that these are the quick and simple Differences between Sanity and Regression Testing in tabular form but the main difference is in its use. We use Regression Testing when we have enough time for Testing, and we use Sanity Testing when we do not have enough time for Testing.
But keep one thing in mind that purpose of both the Regression and Sanity Testing is same; the only difference is in its use.
