Author Topic: What is difference between smoke testing and sanity testing with example?  (Read 17784 times)

Offline Pavani

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Hi all,

Many people are confused with these two terms. So please clarify differences between these two with simple example.


Offline umaenc

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
    • View Profile

Smoke testing is after build releasing we will test high level functionalities working or not.
Sanity testing is we will test all functionalities working properly or not
Umashank

adv

Offline kirankesetty

  • Jr. Member
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Smoke testing is after build releasing we will test high level  functionalities working or not. Sanity testing is we will test all functionalities working properly or not

Offline Pavani

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Can you please say what functionality to be tested?

Offline umaenc

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Functionalities like ( once getting the build, we have to chk whether the given build , major functionalities like [signin,signout,relogin etc] are working or NOT)
Umashank

Offline lavanyasr31

  • Jr. Member
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Smoke Testing: Initial testing done in each new release. Navigate to all the forms here and there and links applicable to make sure no break down in any page. Ensure the application is stable for further testing.

Sanity Testing: Test for high level functionalities of each page. (like Add/Edit/Delete..).
Futher in depth testing is followed if the above testing is verified.

Offline kavita

  • Jr. Member
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
NICE EXPLAINATION ::)

Offline Pavani

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
    • View Profile
thanks for the reply it was very usefull :)

Offline nilesh

  • Full Member
  • ***
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #8 on: September 01, 2010, 04:07:44 AM »
Smoke Testing: If electrical circuit breaks then smoke came.So, 'Smoke' word come in testing from electrics filed.Smoke testing is process where we test that build is fit for use or not(BVT/link ).
In smoke testing we touch all element of application for their existance inapplication.

Sanity testing:The process where we take one application and test it deeply.It is also called as narrow regration testing.

e.g. if we have consider house it should  have one roof, 4 wall, 1 door, 1 window this checking is smoke testing
but in sanity we will take one door & check type, color, size, lock etc

Offline twhitehouse

  • Sr. Member
  • ****
  • Posts: 85
  • Karma: +0/-0
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #9 on: September 01, 2010, 08:48:17 AM »
Re:

"Can you please say what functionality to be tested?"

What would you like to know?  If you provide specific questions we could answer them.  Please give us an example of what you do not understand and then we will gladly help you.

Examples have been given on this page that are good examples.  Read Nilesh's example about a house.  Now, apply that to your tests.  Basically, its general testing.  You don't go into detail.  Just check if the item works then move on for smoke tests.  

Example,

Smoke test:
A web page with a submit button may have a few images on it, some text and a form.  Well, smoke test, just fill out the form with some information and hit submit.  If the page submits without error, the test passes.

Sanity testing...
Same web page...Test all values for the form including but not limited to negative numbers, symbols, large amounts of text foreign languages, upper ascii characters, utf-8 characters, leave blank, etc.  See if the images are aligned where they should be on the page ( which could also be in the smoke tests...depends on how much time you have ), read through all text for alignment, spelling, etc.

Do you see how the sanity testing pays attention to a lot more specific detail where the smoke test is quick and does not pay attention to very many minor, specific details?
« Last Edit: September 01, 2010, 08:56:47 AM by twhitehouse »

Offline Pavani

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #10 on: September 01, 2010, 10:14:55 PM »
Hi nilesh and twhitehouse thanx for ur explanation with nice examples. :)
Now i got clear idea of both smoke and sanity testing.
But one more question about these two.
we do smoke testing as soon as we get the build right.....in the same way when do we go for sanity testing?
Is it immediately after we get build like in smoke testing?? ???
please correct me if i am wrong.??

Offline Mayasen

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 194
  • Karma: +1/-0
  • Mayasen
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #11 on: September 02, 2010, 01:45:29 AM »
Immediate after receiving the build you need to perform the SMOKE test. Once the smoke test is complete for a round then you need to proceed with sanity. In most cases it will happen simultaneously.

:)
--
Mayasen

Offline tester297

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #12 on: September 09, 2010, 05:12:53 AM »
hi
 sanity testing is knothing but initial application build tester condecting testing all major module in available are not .
ex.login page

we r seeing if login page have u id,password,login button,cancle button like this

in smoke testing we r testing if that functionalities are working or not we cat test like thi

Offline manasa.v.v

  • Jr. Member
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #13 on: September 20, 2010, 12:56:00 AM »
hi so many good replys

But i want to tell one thing i.e., sanity testing is mandatory and sanity testing is optional in test engineers job.

Is it right?

Offline Mayasen

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 194
  • Karma: +1/-0
  • Mayasen
    • View Profile
Re: What is difference between smoke testing and sanity testing with example?
« Reply #14 on: September 21, 2010, 03:31:01 AM »
@ Manasa...

Can you please explain clearly, what you want to convey..?
--
Mayasen