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
Explain the defect life cycle.
How do you know the code has met specifications?
Please anyone give answers for all below questions and help ? realtimers please and please share your knowledge.lot of questions left unanswered.
what is date field test case
What is difference between Manual testing and Pega/BPM testing?
what kind of testing have u done?
Hi If anyone from banglore want to know the real time senario like writting Test cases and how things actually happens in a company. I am taking a 2 hours class which will cover all the real time experiance and guidence for job. classes are counducted only at weekends. for further queries mail me at vinodhanandhan@gmail.com Vinodh Anandhan Software Test Engineer vinodhanandhan@gmail.com
How do test documents in a project span across the software development lifecycle?
How do u prepare test environment for ur application?
What's the relationship between environment reality and test phases?
What is XML Testing? Do we have any tools to test the XML? Please let me know.
why QA team is necessary for an organization?
tell me 5 new requirements in ur project? plz urgent
How would you test a service oriented architecture (soa) web application?
If client give you a project then which testing you will perform first