Professional Documents
Culture Documents
Unit Test Case Excel Template
Unit Test Case Excel Template
Unit Test Case Excel Template
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 for
'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 creting 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
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.>
Sub total 36 6 3 36 6 3
300%
Untested
Failed 7% Passed 600% N
13%
Failed A
Untested B
3600%
Passed
80% Internal use 8/19
300%
Untested
Failed 7% Passed 600% N
13%
Failed A
Untested B
3600%
Passed
80%
45
Test Type
300%
600% N
A
B
3600%
600% N
A
B
3600%
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
Precondition
Can connect with server
Input1
"1"
""
null
Input2
>=5 & <= 10
Condition 5
10
Confirm Return
1
2
Exception
Log message
"success"
"input1 is null"
Result
Type(N : Normal, A : Abnormal, B : Boundary) N N N N N B A N N N N N A N N
Passed/Failed P P P P P F F P P P P P P P
Executed Date 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
/ / / / / / / / / / / / / / /
2 2 2 2 0 0 0 0 0 0 0 0 0 1 1
6 6 7 8 1 2 3 4 5 6 7 8 9 0 1
Defect ID D D D D D D D D D D
F F F F F F F F F F
I I I I I I I I I I
D D D D D D D D D D
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 1
2 4 5 6 7 8 9 0 1 2
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
Precondition
Can connect with server
Input1
"1"
""
null
Input2
>=5 & <= 10
Condition 5
10
Confirm Return
Log message
"success"
"input1 is null"
Result
Type(N : Normal, A : Abnormal, B : Boundary) N N N N N B A N N N N N A N N
Passed/Failed P P P P P F F P P P P P P P
Executed Date 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
/ / / / / / / / / / / / / / /
2 2 2 2 0 0 0 0 0 0 0 0 0 1 1
6 6 7 8 1 2 3 4 5 6 7 8 9 0 1
Defect ID D D D D D D D D D D
F F F F F F F F F F
I I I I I I I I I I
D D D D D D D D D D
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 1
2 4 5 6 7 8 9 0 1 2
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
Precondition
Can connect with server
Input1
"1"
""
null
Input2
>=5 & <= 10
Condition 5
10
Confirm Return
1
2
Exception
Log message
"success"
"input1 is null"
Result
Type(N : Normal, A : Abnormal, B : Boundary) N N N N N B A N N N N N A N N
Passed/Failed P P P P P F F P P P P P P P
Executed Date 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
/ / / / / / / / / / / / / / /
2 2 2 2 0 0 0 0 0 0 0 0 0 1 1
6 6 7 8 1 2 3 4 5 6 7 8 9 0 1
Defect ID D D D D D D D D D D
F F F F F F F F F F
I I I I I I I I I I
D D D D D D D D D D
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 1
2 4 5 6 7 8 9 0 1 2
UTCID01
UTCID02
UTCID02
UTCID02
UTCID02
UTCID02
UTCID07
UTCID08
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
Precondition
a
-2 O
-1 O
0 O O O
1 O O
b
0 O O
Condition -2 O O O
2 O
c
0 O
1 O O O
3 O
5 O
Log message
"please input a>= -1" O
Result
Type(N : Normal, A : Abnormal, B : Boundary) A N N N N N B
Passed/Failed
Executed Date 0 0 0 0 0 0 0
2 2 2 2 2 2 3
/ / / / / / /
2 2 2 2 2 2 0
6 6 6 6 6 6 3
Defect ID