Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between unit testing and
functionality testing ?

Answer Posted / yauri

I'd like to add more explanation about unit testing here as following:
unit testing is whitebox test which is used to test the single piece of code or module (commonly it will be a method of a class). But, in unit test, we are suppose to not using the high resource (e.g. database, web service, etc) and even we don't need to start the server (whole of the application). So, if there's a dependency with the secondary object (a.k.a collaborator), we can use "Test Double" technique (either Dummy, Fake, Stub, Mock). Usually i use Mock objects (e.g. mockito, power mock, easy mock, etc) to replace the real object for testing purpose.
And please notice that basically we can do the unit testing either after writing the production code or before writing any production code.
In extreme programming, we will write the unit test first before write any production code (read Uncle Bob's book ^_^). Commonly it recognized as "Test Driven Development".

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi every one can you send me ISTQB Course material on my Email id deeptimundra997@gmail.com

2189


Genarally what we have to tell. If anybody asks in the interview. what are challenges u faced in the Project and what are the Risks u faced in the Project, Anybody can suggest it ......Thanks in Advance....

2297


What is localization testing (l10n testing)?

1272


how to test a web application manually?can u explain indetail?

2070


If client give you a project then which testing you will perform first

1290


Can list out some disadvantages of manual testing?

1098


please send me database stored procedure checklist.

2908


what is the difference between Test-bed and test topology?

3876


What is error cusing tecnique

2020


How to do manual testing of a E-insurance project (end to end process)

3356


what are the test bugs

1955


Explain compatibility testing with an example.

1084


Negatives test cases of gmail login page With its severity , priority and expected results columns Through test case template-oodles technologies gurgoan

2715


What is coverage and what are the different types of coverage techniques?

1136


What is split testing?

1135