RE: i was asked in an interview question,whether have ...
At the initial stages of development small units of programs will be developed and then they will be combined to form a module. Once the units are developed and before uniting them into modules those units are to be checked for proper functioning. This method of checking the units after they are developed is called Unit testing as there will no GUI interfaces at the unit level the testing is done by the developer. Usually test engineer will not come into picture during Unit Testing.
RE: i was asked in an interview question,whether have ...
Hi Unit tests typically exercise small pieces of the code - you may write a new function then write some unit tests for that function. For example you might write some code that passes invalid parameters to the function and verifies it handles the error condition gracefully doesn't crash etc.
RE: i was asked in an interview question,whether have ...
Hi Unit tests typically exercise small pieces of the code - you may write a new function then write some unit tests for that function. For example you might write some code that passes invalid parameters to the function and verifies it handles the error condition gracefully doesn't crash etc. Unit testing is almost like a white box testing.