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
Password is having 6 digit alphanumeric then what are the possible input conditions?
Does an increase in testing always improve the project?
1.what is the approach while writing test cases in your project. 2.tell some intresting scenareo in your project
What is deferred status in defect life cycle?
Hi, this is not a tech question, i have 4 yrs of experience in Mainframe systems, presently as a mainframe tester in pune, i just want to step towards south locatios(preferable hyd), suggest me the best way to get calls from hyd.
aplitue questions will be based on wich type ?
What about the test case if the field only takes a certain number of characters or a minimum number?
What is the difference between system testing and integration testing?
What is Difference between Test Strategy and Test Methodology?
Hi, Anybody knows about Hexaware company..
What is Bomb Testing?
what is system testing? as test eng, what do u do in sys testing? who invoves in sys testing?
difference between change management and configuration management
Explain the procedure for manual testing.
What is srs and brs document?