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
Can you explain the various elements of function points ftr, ilf, eif, ei, eo, eq, and gsc?
What is the main use of preparing traceability matrix and explain the real time usage?
what is the architecture of your current project?
Write 2 scenarios for System testing?
If you are handling a product testing and if there are around 100 test cases and in them few test cases are failed then at the end of the day how will you treat whether the product is pass/fail.? consider the failed test cases are in functional requirements.
Hi....Friends....If anybody having Sample CSTP question papers, pls send it to the following Id... Thanks n advance... theramkumar@gmail.com
Can you explain process areas in cmmi?
what is prototyping model,RAD model V model, spiral model?????
What kind of input do we need from the end user to begin proper testing?
What are the interview question on insurance domain in manual testing
Can you explain decision tables?
What is the purpose of test strategy?
hi... guys can any one pls help me out.... I m civil engg graduate i want to come into s/w field... i have decided to do manual testing course. i know its not sufficient.. which r the other coures shall i do with this.. suggest me good atomation tool and SAP courses... thanks in advance.. i wil be thankfull to u all
how to write the test cases for mark as read/unread mails for gmail inbox?and what are the testings we will do?
What is performance tuning? What are tools of performance testing?