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
I want to know about satyam manual testing questions
What if the project isn’t big enough to justify extensive testing?
Explain what is exhaustive testing?
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.
Diffrernce between client server testing and web server testing.
Which are the different tests for apparel testing?
What types of testing is specifically important for web testing?
Explain Operational Acceptance Testing with example ?
Could anyone share FAQs for Test Manager position...
Functional and Integration test scenarios for actitime application
Hi, I want "Intergraph" placement papers for experienced people which was conducted recently in Hyderabad. Thanks, Purnima.
what r the measure bugs found in your project??? Give some example abt this.
What is middle ware testing?? what are the companies using this tech?
Please Tell me About Fish-Bone Model. Thanks in Adv.
can anyone help me regarding testing patterns?