What should be tested when Unit Testing is conducted?

Answer Posted / ramyab.mca@gmail.com

Hai...

What should be tested when Unit Testing: A lot depends on
the type of program or unit that is being created. It could
be a screen or a component or a web service. Broadly the
following aspects should be considered:

a. For a UI screen include test cases to verify all the
screen elements that need to appear on the screens
b. For a UI screen include Test cases to verify the
spelling/font/size of all the “labels” or text that appears
on the screen
c. Create Test Cases such that every line of code in the
unit is tested at least once in a test cycle
d. Create Test Cases such that every condition in case
of “conditional statements” is tested once
e. Create Test Cases to test the minimum/maximum range of
data that can be entered. For example what is the
maximum “amount” that can be entered or the max length of
string that can be entered or passed in as a parameter
f. Create Test Cases to verify how various errors are
handled
g. Create Test Cases to verify if all the validations are
being performed

K,Byeeee...
Thanks & Regards
B.Ramyasri

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to know about satyam manual testing questions

1590


What if the project isn’t big enough to justify extensive testing?

991


Explain what is exhaustive testing?

1018


hello frens. Im Arun from the uk. im planning to apply for tester jobs with 3yrs experience. the problem is i dont have resumes. i have to mention atleast 3 projects (preferably financial projects) in my CV. im totally blank. can u plz send ur CV's to my email.... arunmoses1982@yahoo.com. this would be a great help from you guyz. n u need any help from me? just mail me n ill get in touch with u. Thanx.

1666


Diffrernce between client server testing and web server testing.

1964


Which are the different tests for apparel testing?

912


What types of testing is specifically important for web testing?

897


Explain Operational Acceptance Testing with example ?

1108


Could anyone share FAQs for Test Manager position...

1838


Functional and Integration test scenarios for actitime application

6967


Hi, I want "Intergraph" placement papers for experienced people which was conducted recently in Hyderabad. Thanks, Purnima.

2145


what r the measure bugs found in your project??? Give some example abt this.

4361


What is middle ware testing?? what are the companies using this tech?

1987


Please Tell me About Fish-Bone Model. Thanks in Adv.

1662


can anyone help me regarding testing patterns?

1749