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

PLS SEND REAL TIMERS, WHAT IS SOA TESTING..IM TRYING 3+ YR.. I HAVE GOOD KNOWLEDGE ON MANUAL TESTING... NOW IM NEW TO LEARN "SOA TESTING" IS BEST OR NOT? BEFORE LEARNING SOA TESTING ANY SKILLS ARE REQUIRED..... AND NOW WHAT IS THE MARKET FOR SOA TESTING... AND IT IS BASED ON PROGRAMMING OR NOT?

2325


Write 2 scenarios for Integration testing? Please let me know its urgent.

1564


Describe some staff conflicts you have handled.

1613


Explain the importance of agile testing?

673


How do u prepare test environment for ur application?

1677






What is a test log?

637


1.Tell me negative test cases for notepad 2.Tell me the factors for for writing severity based test cases

5533


What is boundary value testing? Give an example.

711


What are the principles of software testing?

666


Please let me know how to test labels in web application manually and how the testcases would be. Please provide me a sample testcase

1116


what is the main field of bugzilla which we fill to report bug to any developers???give some brief description??

1610


Is Anyone attended the manual testing interview with capgemini in recent past. please let me know the type of questions they can ask. Thanks

2883


What are tools of performance testing?

710


is it not possible to automate full project??what r the parts in project that cant be automated(tht has to be done manually)?

1988


What is mean by multi-threading testing?

2110