What should be tested when Unit Testing is conducted?



What should be tested when Unit Testing is conducted?..

Answer / 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

More Manual Testing Interview Questions

About database testing,plz proide me the link for database testing doucments. Koteswar Rao

0 Answers  


9. Are there materials you would like to see added to the Web site? Which ones?

0 Answers  


Explain Acceptance Testing with an Example

4 Answers  


What is the difference between functional testing and behavioral testing?

4 Answers   TCS,


where can i learn domain knowledge? how cab i gain domain knowledge? what types of Questions can be asked in domain(BFSI)? PLZ REPLY ME

0 Answers   IBM,






Hello everybody! i have a question: 1. please describe the most basic tasks of junior tester [3+ years] in a project [client-server and web applications], starting from gathering requirements and until software release to customer. Thanks!

1 Answers  


As a Tester how we choose black or white box testing technique for a application?

4 Answers  


what is Defect Containtment?

1 Answers   Accenture,


1)what is the basic diff. between unit testing and component testing 2)how do you implement framework in ur project through automation

5 Answers   iGate, Satyam,


What is Retesting?

8 Answers  


how do you know the testcases writing completed

4 Answers   GE,


please tell me the test cases for the following scenario 1. Two windows are there in one window pin code text box and ok button will be there.... we need to enter the pin code no and then click on ok........ basing on this in second window post offices address should come...........what are the imp test cases for that.....

9 Answers   IBM,


Categories