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
write test case for gmail login page
What is split testing?
What is Independant Testing? When and where this type of testing will be performed?
What is the different between SIT and UIT?
What is the Myers Boundary Table?
What exactly you do as a Configuration controller?
Test approach to windows update?
If I want to check compability of software in a MAC OS then which steps shold I follow?
How to test an Scheduled event? For ex: in an investment banking application, the scheduler will create an equity anbd user has nothing to do but tester has to test if the instrument is created properly or not?
What is the difference between load testing and performace testing?
iwant know IEEE formate ,how it is used and exactly where it is used? i have details it follows test plan, testcases...etc. i want real time explanation. pls any one give?
What is Catapult Testing in E-Learning Domain?
What are the Major Functionality for a ATM machine ??
HI. ANYONE HAS ATTENDED INTERVIEW FOR TESTING IN MINDKRAFT GLOBAL. I HAVE WRITTEN TEST FOR SOFTWARE TESTING. CAN ANYONE TELL ME WHAT ALL QUESTIONS CANBE ASKED. PLS REPLY. THANK YOU
Are there more defects in the design phase or in the coding phase?