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

what is FAT and SAT tests .?

8 Answers  


How any person can be a software tester, if he/she is not having software knowledge?

5 Answers  


Can v prepare Test cases only from BRS from Tester point of view?

9 Answers   Sapient,


1) In a software development project Spiral Model was Chosen as the development model. What is the best-suited reason for this? A)This model is the oldest and most widely used paradigm for software development. B)In this model users get the feel free the actual system and developers get to build something immediately. C)In this model risk analysis is done coupled with evolutionary S/W process model with the iterative nature of prototyping and controlled systematic aspects of water fall model D)This model combines elements of Classical model with this iterative philoophy of prototyping.

2 Answers   Mind Tree,


what is the diff b/n testing methodologies and testing techniques?

7 Answers   Thomson,






write 3 major bugs in inventory management system ...give 3 system test case and 3 integration test case

1 Answers   IBM,


Please Anybody tell me,Who is going to do Smoke and Sanity Testing i.e. Developer or tester ? S.Pokharkar Watershed Infotech,Pune

16 Answers   TCS,


Why do u want to change the job?

3 Answers   Minecode,


Hi am new to this forem.i am a begineer in software testing and i have passed the ISEB exam,can anyone tell me how to gain knowledge practically ie practising testcases...... Thanks in advance

2 Answers   TCS,


if you intrested to learn Manual Testing concepts with real time examples on weekends @ Bangalore. Mail me @ manualtestingtraning@gmail.com Duration: 16 Hours Fees 1000/- only on weekends Trainer: TestLead form MNC Bangalore

1 Answers  


what is the difference between client server & web based applications?

1 Answers  


Smoke Testing is responsibility of Tester & Developer ?

5 Answers  


Categories