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

When a website is ready and you are asked to test it what will u do?If you don't have any requirements and your team manager also doesn't have any requirements?

0 Answers  


How to write a test case for traffic signal?

7 Answers  


Difference between manual and automation? Explain me test cases?How to write test cases??Give some examples of test cases? is anybody here who has 2 years manual testing experience.. difference between black box and white box testing

2 Answers  


how to import test cases from quality center to excel.. explain navigation

1 Answers   FIS,


Hi! I got an interview call for the post of Trainee QA engg .The interview is on Monday(27/08/07).There is going to be a technical written test followed by an interview on Monday.Can anyone plz tell me what exactly is the technical written test for QA like,is it objective or theoretical based. PLZZZZZ reply as early as possible ---- Its URGENT. -- SK

2 Answers   IBM,


What is the exact difference between smoke testing and sanity testing.?

6 Answers   Accenture,


What are the benefits of creating multiple actions within any virtual user script?

1 Answers  


Two negative Testcases for Excel Sheets

1 Answers  


What are the baselined document needed to create Test case,Integration TEst case, System test case, Acceptance test case?

1 Answers  


send the senario template

1 Answers  


How will u write the test case if u dont have the requirements and ahve the similar application

7 Answers   Persistent,


what is the latest version of the win-runner?

1 Answers  


Categories