View previous topic :: View next topic
|
Author |
Message |
mf_karthik
New User
Joined: 26 Jul 2005 Posts: 55
|
|
|
|
HI
HOW IS UNIT TESTING PERFORMED?
EXPLAIN IT CLEARLY WITH PROCEDURES AND SMALL EXAMPLES |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Using test cases. |
|
Back to top |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
Hi Karthik,
In SDLC, after completing the design doc, we have to prepare Unit Test cases.
UNIT TEST CASE doc is nothing but defining test cases for the required functionality unit wise. Like verifying all exceptions..(file open/clsoe/read/write....If cond/While cond & also for some functional validation). Test case should contain test scenario & expected outcome. During test case, we will ptrepare the test data as well.
After CODING phase, we will execute our object & verify the results according to the TEST CASE we written earlier.
This is the funda....Hope it clears....
Thanks
Shiva |
|
Back to top |
|
|
karthi_ind
Active User
Joined: 24 Feb 2004 Posts: 131 Location: Chennai
|
|
|
|
hi karthi
Actually unit testing is nothing but the
testing done by the programmer itself and
to verify whether the code changes done by him
is working fine or not.
Once we finished coding for our maintenance or
enhancement work, we hve to start testing .
For testing we hve to prepare test cases.
We can prepare test cases in excel sheets.
The cols in the test cases are
Serial no
Test scenario
Expected Outcome
Actual outcome
Result (Pass/Fail)
We hve to take sample datas from test systems and test the program.
Test case should be as simple in simple english statements so that anyone can understand.
Hope it clears ur doubts
Karthi G. |
|
Back to top |
|
|
|