Guideline To Make and Understand Unit Test Case: 1. Overview
Guideline To Make and Understand Unit Test Case: 1. Overview
1. Overview
- In the template, Unit test cases are based on functions. Each sheet presents test cases for one function.
- Cover: General information of the project and Unit Test cases
- FunctionList: The list of Classes and Functions in the document.
+ To control that the number of Unit TC meets customer's requirement or the norm, user should fill value fo
'Normal number of Test cases/KLOC'.
+ Click on Function link to open the related Test cases of the function.
Note: You should create new Function sheet before creating the link
- Test Report: provive the overview results of Functions Unit test: Test coverage, Test successful coverage
(Summary, for normal/abnormal/boundary cases)
Note: Should check the formula of "Sub Total" if you add more functions
- To verify that number of Unit TC meets customer's requirement or not. User has to fill number LOC of
cases/KLOC' item in FunctionList sheet, which is required by customer or normal value. The number of lacked T
- If the number of Unit TC does not meet the requirement, creator should explain the reasons.
- If the number of 'Normal number test cases/KLOC' item in FunctionList sheet is not recorded, the number in
Record of change
Effective Date Version Change Item *A,D,M Change description
<Date when these changes
are effective>
Reference
<List of documents which are refered in this version.>
Requirement
No Class Name Function Name Function Code(Optional) Sheet Name Description
Name
1 Class1 Function A Function1 Function1
2 Class2 Function B Function2 Function2
3 Class3 Function C Function3 Function3
Test Type
Passed Percent
Passed N A
Failed B
Untested
53
est Type
N A
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
Condition Precondition
Can connect with server
Semester
Su23 O O O
Su24 O O O
Summer23 O
Summer24 O
Add O O O O O
Edit O O
Delete O O
Confirm Return
T O
F O O O O O O O O
Exception
Log message
Fail..! O O O O O O O O
Successfully..! O
Result Type(N : Normal, A : Abnormal, B : Boundary) N N N N N B A N N
Passed/Failed P P P P F F F F P
Executed Date 0 0 0 0 0 0 0 0 0
2 2 2 2 3 3 3 3 3
Defect ID
/ / / / / D/ D/ D/ D/
2 2 2 2 0 0
F 0
F 0
F 0
F
6 6 7 8 1 2I 3I 4I 5I
D D D D
0 0 0 0
0 0 0 0
2 4 5 6
15
n>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
O
O
N N N A N N
F P
0 0 0 0 0 0
3 3 3 3 3 3
D/ D/ D/ D/ D/ D/
0
F 0
F 0
F 0
F 1
F 1
F
6I 7I 8I 9I 0I 1I
D D D D D D
0 0 0 0 0 0
0 0 0 1 1 1
7 8 9 0 1 2
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
Condition Precondition
Can connect with server
Course
DBI202 O
JPD123 O
PRJ301 O
Introduction to Databases O
Elementary Japanese 1-A1.2 O
Java Web Application Development O
Add O O O O O O
Delete
Edit
Confirm Return
T O O O
F O O O
Exception
Log message
Successfully..! O O O
Fail..! O O O
Result Type(N : Normal, A : Abnormal, B : Boundary) N N N N N N
Passed/Failed P P P F F F
-5
UTCID08
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
O O
O O
O O
O O O
O O O
O
O O O O O O
O
O O O
N N N N N N N
F F F F F F P
D D D D D D D D D
F F F F F F F F F
I I I I I I I I I
D D D D D D D D D
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 1 1
4 5 6 7 8 9 0 1 2
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
Condition Precondition
Can connect with server
Major
IOT O
JL O
KL O
MC O
SE O
Internet of things O
Japanese langugae O
Korean language O
Multimedia communication O
Software engineer
Add O O O O O O O O O
Edit
Delete
Return
T O O O O
F O O O O O
Exception
Log message
Successfully..! O O O O
Result O O O O O
Fail..!
Type(N : Normal, A : Abnormal, B : Boundary) N N N N N N N N N
Passed/Failed P P P P P F F F F
Executed Date 0 0 0 0 0 0 0 0 0
2 2 2 2 3 3 3 3 3
/ / / / / / / / /
2 2 2 2 0 0 0 0 0
6 6 7 8 1 2 3 4 5
Defect ID
D D D D
F F F F
I I I I
D D D D
0 0 0 0
0 0 0 0
2 4 5 6
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
O
O
O
O
O
O O O O O
O
O O O O O
N N N A N N
F F F F F F
0 0 0 0 0 0
3 3 3 3 3 3
/ / / / / /
0 0 0 0 1 1
6 7 8 9 0 1
D D D D D D
F F F F F F
I I I I I I
D D D D D D
0 0 0 0 0 0
0 0 0 1 1 1
7 8 9 0 1 2
UTCID01
UTCID02
UTCID02
UTCID02
UTCID02
UTCID02
UTCID07
UTCID08
UTCID09
Condition Precondition
Can connect with server
Semester
Su23 O O O
Su24 O O O
Summer23 O
Summer24 O
Add O O O O
Edit O O
Delete O O
Return
T
F O O O O O O
Exception
Log message
Fail..! O O O O O O O O
Passed/Failed P P P P F F F F
Executed Date 0 0 0 0 0 0 0 1
2 2 2 2 2 2 3 2
Defect ID
/ / / / / / / /
2 2 2 2 2 2 0 3
6 6 6 6 6 6 3 0
02ae-BM/PM/HDCV/FSOFT v2/1 Internal use 21/22
Function A
-5
n>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15