How do you write unit test cases ?

Answer Posted / imran

Test Case describes exactly how the test should be carried
out.
1. Input the data for a field.
2. what should be expected result.
3. what is the actual result.
4. whether the test case is pass or fail.

and if there is any comments or note needed, then put the
comments about the functionality.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you deal with a bug that no one wants to fix? Both the SDE and his lead have said they won?t fix it?

2880


Write a function that inserts an integer into a linked list in ascending order. Write the test cases for this function.

5126


Tell about current project ?

2213


What training have you undergone in project planning?

3328


how to tell project details in interview the project is funds flow analysis?

1169






Write the instr function.

743


Write the test cases for instr function?

648


How do you create the Software Project Management Plan (SPMP)?

4041


Explain dll hell?

667


Did you used crystal reports? Do you have sufficient knowledge on crystal reports?

2156


How do you rate yourself in c#,vb.net,Asp.net,oracle,sql server ?

4972


Test the save dialog in Notepad?

4185


I want question and paper based MS Projects. Also is there any exam which microsoft conduct for Ms Project professional to issue certification?

2169


create a flow diagram up to 2 levels for hospital management

3224


What and where are the policy statements for software project planning?

2989