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
Explain the sub-genres of performance testing?
What if the project isn’t big enough to justify extensive testing?
Do you know anything about Set Top Boxes?
When should you opt for manual testing over automation testing?
What are tools of performance testing?
Write 2 scenarios for Integration testing? Please let me know its urgent.
Hi, Can anyone suggest a test case writing technique for the below scenario. 1. User draws a lines on the image 2. User selects the lines and right clicks ( Measuremnts like distance between the start and the end point, coordinates of start point and coordinates of end point) 3. User selects one of the measurement Measurement is displayed Just want to highlight, i am looking for a test case writing technique for above scenario.
Hi friends I am kranti completed my IT diploma in 2005 & after that complete my software testing course. Now I am working in small software form as software tester. I have 2 + year experience in manual testing. Now I wan to change company. Plz told me is there any effect that I can not have any degree although I have 2 + experience ?
When to stop testing? (Or) how do you decide when you have tested enough?
Why testers wil prepare useracceptance testcases,system testcases and integration testcases,What is the differenece between all this test cases
what is the most critical bug u have to find in ur project.My application is ERP based,in this purchase module is there.plz tell me the answer?
how to creat 2 test plan in 2 different environment exp:tour and travel
I HAVE AN INTERVIEW IN A SOFTWARE COMPANY FOR THE POST OF FUNCTIONAL TEST ENGINEER. THEY WANT THE PERSON FROM BCOM BACK GROUND( I AM A BCOME GRADUATE 2006) AND THE PERSON SHOULD HAVE GOOD ACCOUNTS KNOWLEDGE. NOW I WANT TO KNOW WHAT KINDS OF QUESTIONS THEY CAN ASK OR CAN GIVE IN WRITTEN TEST. I M NERVOUS COZ ITS BEEN 5 YEARS I HAVE DONE BCOM. SO HOW SHUD I PREPARE FOR INTERVIEW.PLEASE HELP? reply me pls. its urgent. thanks
What is the negative testing and example
Explain thread testing.