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 explain how to elaborate on the types of system/functionality for testing Payments, Statements, & Transactions features in a bank.....like what do we test in these,in detail? It's urgent, please reply...thanks in advance.
What is test startegy?
do we require any scripting languae to write test cases in test director? what for it is used?it is like back end?only database we can there?
What is an mr?
What are microsoft 6 rules?
What r all the security problems u r facing & the measures taken to solve.
Hi there, I am new to the world of testing. Is there any place where I can have a look at an actual specification documents or test plans or test cases. This will help me in generating a level of confidence. Looking forward to your replies
Explain crud testing.
what is sanity test (or) build test?
write the test senario on opening door in the flow diagram format
What do you understand by usability testing?
For any web application, what are the possible login features that should be tested?
what is the difference between PEGA based web application testing versus web application testing?
Explain thread testing.
which sanity testing is performed?