Question - What is the difference between smoke and sanity testing?
Answer -
The difference between smoke and sanity testing is-
- Smoke testing is a type of testing in which all major functionalities of the application are tested before carrying out exhaustive testing. Whereas, sanity testing is a subset of regression testing which is carried out when there is some minor fix in the application in a new build.
- In smoke testing, shallow-wide testing is carried out while in Sanity, narrow-deep testing (for a particular functionality) is done.
- The smoke tests are usually documented or are automated. Whereas, the sanity tests are generally not documented or unscripted.