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

How do u avoid redundant test cases?

1 Answers   Aspire,


Can anyone give me the example of High Priority and High severity defect. Please dont give me answers like Spelling mistakes or logo missing something like that. Give me some real time example from your application. Thanks in Advance.

1 Answers   IBM,


What is disaster testing and recovery testing ?

5 Answers   CTS,


What is alpha and Beta Testing?

7 Answers  


Book by Which author is best to use? 1)Erik Van Veenendaal 2)Rex Black 3)Grahum

1 Answers  






what is called testware?

2 Answers  


What is Internal Links, External Links, orphan Pages, Broken Links

2 Answers  


Please give me any example of High severity and Low priority type of bug ?

7 Answers   TCS,


who will do impact analysis in testing?

2 Answers   iSoft,


What is the difference between SIT and IST?

2 Answers  


I have 2 yrs 10 months experience in manual testing. there is a gap of 3 yrs in between. just 3 months before i rejoined the same company. I am looking for new & better job.What I have to enhance my career to up level, should I have to do Automation course or any other. Guide me properly.

0 Answers  


List 5 words that best describe your strengths.

5 Answers  


Categories