How do you write unit test cases ?
Answers were Sorted based on User's Feedback
Answer / mms zubeir
Both the above answers are wrong.
Unit test cases are normally not written after coding but
they are written before coding.
So, break up the functionality into smallest pieces like
each broken piece of functionality can accept an input
criteria as well as output criteria.
| Is This Answer Correct ? | 75 Yes | 9 No |
Answer / naveen verma
First approach must be to break your code. Write the
testcase with wrost condition first and best condition later.
| Is This Answer Correct ? | 40 Yes | 7 No |
Answer / kns
Test cases are normally written on a basis of your low level
design document say SDD.SDDis the correct document that
covers the complete flow of your project which is based on
your requirement doc.SDD also covers the complete
requirement along with the sudo code in it ,SDD also covers
the functionality ,so for creating your test case keep SDD
in front ,it will also help you to trace the requirement
back(tracebility metrics).So fetcch the correct requirement
from the sdd , break it and write every case for that break
requirement.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / solomon blessing
Mostly Unit testcases are written by developers and not by
testers. If a tester has to write a unit testcase
Eg: For Username field should contain only 15 charac
TestId :1 Description :Verify whether the Username field
accepts 15 charachters Steps : 1.Click the URL 2.Give
positive and negative input values Expected
Result:The username field should contain 15 characters only
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
Answer / krishnamoorthy
i am write test very well and don't copy from other
whatever you know write the test.
| Is This Answer Correct ? | 11 Yes | 28 No |
I want question and paper based MS Projects. Also is there any exam which microsoft conduct for Ms Project professional to issue certification?
Write the InStr function. Write the test cases for this function?
How do you report the status of your project?
What are the different inputs and outputs of the phases in SDLC ?
How do you track the technical activities in your project? How is the status of the project communicated to the team?
What is DLL HELL?
Q1. A. How can we determine performance standards? B. Write note on chaining views. Q2. A. Discuss the working with task in Gantt chart view. B. Explain the creation project schedule. Q3. A. What is understand in resource tracking? B. Write short notes on Caturing Baseline. Q4. A. How to customize workgroup message? B. How to use hyperlink? Q5. A. Explain the installation of project server? B. Discuss the working with to-do lists. Q6. A. Explain the working of templates? B. What is visual basic? C. Write shortnotes on user forms.
Write the test cases for a vending machine?
create a flow diagram up to 2 levels for hospital management
What are the different phases of SDLC ?
94 Answers College School Exams Tests, Geometric Software, Infosys, Microsoft, NIIT, Samyak, Sun Microsystems, TCS,
Can any one please give me an effective format for designing a functional specification and technical specification sheet for a software developemnt related company asap...it would be highly useful for my final year project.
Tell about current project ?