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

Write a Test Case to test Can of Coke?

1 Answers   Adidas,


what are reviews in sdlc?

2 Answers   Semantic Space,


what is a data guidelines?

0 Answers  


Hi Friends, Plz answer my these questions on sqt.qae@gmail.com Why you want to be software tester? As new to testing what kind of work is to be there in testing in detail...in testing What to study in manual testing or automation testing from interview point of time? Is there we have choice to choose domain while interview time..? Reply ...on my email

1 Answers  


If one testcase takes 24hours to execute.what will be the status u will be giving to it?and wht u will report to ur TL?I mean to say will u include the above testcase or exclude it?plz suggest me with the exjact answer.

3 Answers   Kanbay,


What is Boundary Value Analysis(BVA) and Equivalence Class Partition(ECP)?

10 Answers   TCS, Trigent,


name poneno dept sun 9894433467 computer This is the xls sheet a programs written to transfer this data into database write test cases and test scenario?

0 Answers   QualSoft,


Advantages and Dis-advantages of V-model?Is every company is using V-model only? pls send me the answer very quick asap.

8 Answers  


What is the difference between the test scenarios and test strategy?

1 Answers  


what is major challenges in Real time system testing? Explain the way of Testing for Real-Time Systems.

1 Answers   Crea,


How do you handle a test case when the test data created with an AGE field becomes invalid since the date of the system changes over time? For example, a person who could be a < 18 years old last month is now > 18 years and the whole scenario fails? Do you keep updating the test data or is there another creative solution here (besides changing the system date & time which can't be done as it is an Internet app)?

1 Answers  


What is the difference between load testing and performace testing?

0 Answers   Infosys,


Categories