Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Regression and Sanity Testing

This is a discussion on Regression and Sanity Testing within the Testing Issues forums, part of the Software Testing category; Is there any difference between Regression Testing and Sanity Testing?...

Go Back   Geeks Talk > Software Testing > Testing Issues
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-02-2006
Expert Member
 
Join Date: Oct 2006
Posts: 689
Thanks: 0
Thanked 53 Times in 44 Posts
JobHelper is on a distinguished road
Regression and Sanity Testing

Is there any difference between Regression Testing and Sanity Testing?

Last edited by jainbrijesh; 05-22-2007 at 03:56 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-02-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: Regression and Sanity Testing

Regression testing is applying the previously failed and all the related tests on the modified built.
Eg. Let us suppose there are 25 test cases for the functionality. During the initial testing, the test case numbers 11 and 12 have failed and we can't continue testing unless the 2 bugs are resolved. In such case we first report the bugs. Once we receive the modified build from the developers, we apply previously failed test cases (i.e. 11 & 12) and all related test cases according to the bug (say 6, 7, 8 and 9). After that we continue applying the remaining test cases (i.e. 13 to 25).

Sanity testing is a level 0 testing to test the testability of the s/w build, i.e. to test the s/w for its stability. It is tested to verify if it is Understandable, Operable, Controllable, Observable, Consistent, Simple, Maintainable and Automatable. These 8 stages are called Octagonal testing.
Reply With Quote
The Following User Says Thank You to sutnarcha For This Useful Post:
  #3 (permalink)  
Old 12-05-2006
Contributing Member
 
Join Date: May 2006
Location: Hyderabad, India
Posts: 81
Thanks: 4
Thanked 13 Times in 11 Posts
bharathi_ark is on a distinguished road
Re: Regression and Sanity Testing

Hi,
sutnarcha

let me know what is meant by initial testing?
Do u mean initial testing and sanity testing are the same?

Bharathi
Reply With Quote
  #4 (permalink)  
Old 12-05-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: Regression and Sanity Testing

As Sanity testing is done in the initial stages of the s/w testing process and is done on the initial s/w build (that we get from the dev team for the first time), if it is termed as initial testing, then I would say its not incorrect.
Reply With Quote
  #5 (permalink)  
Old 12-05-2006
Contributing Member
 
Join Date: May 2006
Location: Hyderabad, India
Posts: 81
Thanks: 4
Thanked 13 Times in 11 Posts
bharathi_ark is on a distinguished road
Re: Regression and Sanity Testing

what my doubt is that Do we start regression testing at level 0 testing phase when we get defects? and

during sanity testing we are not applying all testing methods. Here only we observe whether it is understandable (all mentioned u previously).

when we conduct regression testing and after which stage in testing process?
Reply With Quote
  #6 (permalink)  
Old 12-05-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: Regression and Sanity Testing

No there cannot be regression testing at level 0 testing phase. coz regression testing starts when we receive the modified build from the dev team.
Let us follow the chain below with all possibilities in a testing process.

1) We receive the very first s/w build from dev team.
2) We apply level 0 sanity testing to test its testability and understandability.
3) If we find it is not, then the sanity test is failed and we report the problems as to why it is not testable or understandable.
4) We get a fresh s/w build.
5) We apply level 0 sanity testing to the fresh build again. And let us say it is passed this time. Once a build is passed Sanity testing, it is called a "Stable build".
6) We now start our actual testing process by applying the written test cases (functional testing).
7) We found some of the test cases failed. We report the bugs to the dev team.
8) We receive modified build (after resolving the reported bugs).
9) We start regression testing on modified build.
10) Now go back to step 7.

Step 7, 8 and 9 are ongoing……

As you see above, the very first occurrence of the word ‘regression’ is only at 9th stage.

I hope this is now clear.
Please don't mind asking me if any more clarifications are required.

Last edited by sutnarcha; 12-05-2006 at 07:34 AM.
Reply With Quote
The Following User Says Thank You to sutnarcha For This Useful Post:
  #7 (permalink)  
Old 12-05-2006
Contributing Member
 
Join Date: May 2006
Location: Hyderabad, India
Posts: 81
Thanks: 4
Thanked 13 Times in 11 Posts
bharathi_ark is on a distinguished road
Re: Regression and Sanity Testing

Now It is clear to me.

Thanks for giving detailed information about regression testing and sanity testing
Reply With Quote
  #8 (permalink)  
Old 12-05-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: Regression and Sanity Testing

You are welcome for any such clarifications. I will answer if i can. I may have to search the answer and reply. Thats one of the good and interesting way to learn things. Isn't it.
Reply With Quote
  #9 (permalink)  
Old 12-07-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: Regression and Sanity Testing

Please read through the thread "Difference between sanity and smoke test" for more differences on the two.
Reply With Quote
  #10 (permalink)  
Old 12-07-2006
Contributing Member
 
Join Date: May 2006
Location: Hyderabad, India
Posts: 81
Thanks: 4
Thanked 13 Times in 11 Posts
bharathi_ark is on a distinguished road
Re: Regression and Sanity Testing

Hi
sutnarcha

there was no information about this thread.
Reply With Quote
  #11 (permalink)  
Old 12-07-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: Regression and Sanity Testing

In the search menu of GeekInterview shown above, just type 'Smoke' and choose 'show posts' option. Then click GO. There is a thread that has about 8 replys and is viewed for over 700 times. This has some info about diff between sanity and smoke tests.

Last edited by sutnarcha; 12-07-2006 at 06:24 AM.
Reply With Quote
  #12 (permalink)  
Old 12-08-2006
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 910
Thanks: 12
Thanked 108 Times in 76 Posts
jainbrijesh will become famous soon enoughjainbrijesh will become famous soon enough
Re: Regression and Sanity Testing

Dear Friends,

As i know, Sanity testing is the testing in which we run the general test cases to test whether the application is working properly or not, means to say that it is sane enough to run exhauting testcases on application. During sanity testing we run only positive testcases.


Whereas Regression testing is needed whenever there is a change in build.It may be due to addition of new functionality or due to bug fixing.


With Regards,
Brijesh Jain.
Reply With Quote
  #13 (permalink)  
Old 09-15-2008
Junior Member
 
Join Date: Sep 2008
Location: Viet Nam
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Nhu Mai is on a distinguished road
Smile Re: Regression and Sanity Testing

Thanks for your instructions. I wonder if I understand correctly or not that we have SANITY TESTING only one time when we get the new s/w? Due to all the next modified builds, we call it REGRESSION TESTING. I mean for each s/w, we have only one period time we call SANITY TESTING. Please correct this to me if I am wrong. Thank you very much!
Reply With Quote
  #14 (permalink)  
Old 09-15-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,465
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Regression and Sanity Testing

hi nhumai,

when we get the new software we do smoke testing, smoke determines whether it is possible to continue testing. for ex: if there form we check the responsivesness of the form.
if somke fails it is highly difficultto continue testing..

once if smoke testing passes we do sanity testing, sanity really determines the smallest subset of the functaionality, which determines whether the functionality is right or wrong..

Regression testing:
regression is done when there is a change in module which is previously developed we do regression to check whether the newly made change in the existing software has some side effects or not.

Thanks
Deepasree
Reply With Quote
The Following 3 Users Say Thank You to deepasree For This Useful Post:
  #15 (permalink)  
Old 02-12-2009
Junior Member
 
Join Date: Mar 2008
Location: Chennai
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
mrbhush is on a distinguished road
Re: Regression and Sanity Testing

Hi,

Thanks for your Sanity and Regression testing information.
what is meant by unit testing? Is there any relation with sanity and Regression testing?

Adv thanks,
Bhushan
Reply With Quote
  #16 (permalink)  
Old 02-12-2009
Expert Member
 
Join Date: Oct 2007
Location: hyd-India
Posts: 122
Thanks: 3
Thanked 17 Times in 15 Posts
ch.bhaskar.mca is on a distinguished road
Re: Regression and Sanity Testing

Hi bhushan,

Unit testing is part of testing done by devolopers. In this testing they will check the code (logical part of the code). In this unit testing they mainly concentrate on Conditonal statements etc.... in coding part only. After this they will go for Integration testing.
Reply With Quote
  #17 (permalink)  
Old 03-06-2009
Contributing Member
 
Join Date: Jul 2008
Location: Delhi
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
hitesh_shah19 is on a distinguished road
Re: Regression and Sanity Testing

I have read all answer and i am convinced but regarding to Sanity testing , Sanity testing is same to smoke testing ? pl explain difference with example in steps
thanks
Reply With Quote
  #18 (permalink)  
Old 03-06-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,465
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Regression and Sanity Testing

hai hithesh,

There is no difference between sanity and smoke.

Thanks
Deepasree
Reply With Quote
  #19 (permalink)  
Old 03-08-2009
Junior Member
 
Join Date: Jun 2007
Location: Redmond, WA, USA
Posts: 18
Thanks: 2
Thanked 6 Times in 5 Posts
SomGollakota is on a distinguished road
Re: Regression and Sanity Testing

Simply put, qa sanity testing (or smoke testing) occurs at the front end of testing (after the code drop, and before qa testing begins), while regression testing usually occurs at the tail end of the qa testing (at least the last regression pass). Sanity testing is to ensure the "testability" of the applications, regression testing occurs, after a mid-cycle code drop, to ensure nothing else is broken. Mid-cycle code drops occur because of a fix to a defect found during the course of testing. Regression will ensure that the defect fix did not break something else somewhere else. While regression testing is a simple effort on a one application per environment testing situation, in real life at an enterprise level, it is seldom that simple. When you have multiple projects making changes to same set of applications, and all projects and their applications sharing the same environment to ensure "production-like" test conditions, regression becomes a complicated, yet extremely critical exercise to success. Typically, in such real life scenarios, i would like my enterprise qa lead to plan for at least three regression passes, and the final pass to occur after the final code drop to the environment (regardless of which project is dropping code). The regression team will then run a regression suite, that includes all test cases for all applications that are living in the environment. This includes incremental test cases since the first version of the application had launched. Ideally, the final test pass would execute (and pass) 100% of the regression suite for 100% of the applications in the environment. However, when there is a time crunch to complete the "ideal scenario regression testing", the following could be acceptable - 100% of the regression suite for the applications that took a code drop prior to the start of final pass, end-to-end test scenarios for those applications, and 100% of the regression suite for any applications downstream to the application that took code drop. E.g. - crunch time scenario: there are 20 applications in the qa environment (shared testing). App1 took a code drop just prior to the start of final regression pass. App3 and app7 are downstream to app1 and depend on data passed from app1. minimum regression for crunch time scenario: 100% execution of regression suite for app1, app3 and app7; plus end to end test scenarios for app1.

Last edited by SomGollakota; 03-08-2009 at 08:35 PM. Reason: Incorrectly formatted
Reply With Quote
The Following User Says Thank You to SomGollakota For This Useful Post:
  #20 (permalink)  
Old 03-08-2009
Expert Member
 
Join Date: Jun 2007
Location: Australia
Posts: 260
Thanks: 7
Thanked 15 Times in 15 Posts
Sushma Mosali is on a distinguished road
Re: Regression and Sanity Testing

Regression Testing: Regression Testing involves reuse of the sam etest, so you can retest after change. There are three kinds of regression tests
1. Bug Fix Regression: Carried out after reporting a bug and hearing later on that its fixed. The goal is to prove that the fix is no good.
2. Old Bugs regression: To prove that a change to the software has caused an old bug fix to become unfixed.
3. Side-effect regression/Stability Regression: Involves retesting of substantial parts of teh product.

Sanity Testing: Test things which you expect to work, and if they dont you will suspect that the program was built with the wrong file or that something basic is broken.

Thanks
Sushma
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Issues

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Testing PHP – Security Testing RyanJames Testing Issues 7 02-03-2009 11:53 PM
Difference between sanity and smoke test dibyamishra Testing Issues 34 03-19-2008 02:25 AM
interoperability testing, vulnerability testing) milu_mohanty Testing Issues 1 04-19-2007 03:01 AM
Regression Testing Jimmy Zorald Testing Issues 3 12-29-2006 04:06 AM


All times are GMT -4. The time now is 05:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved