Report5 - Unit Testt
Report5 - Unit Testt
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 t
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
Name
1 Class1 Function A Function1 Function1
2 Class2 Function B Function2 Function2
3 Class3 Function C Function3 Function3
Description Pre-Condition
Sub total 36 7 2 35 7 3
Test Type
Passed Percent
Untested; 4% B; 7%
Failed; 16%
N
Passed A; 16%
A
Failed
B
Untested
N; 78%
Passed; 80%
02ae-BM/PM/HDCV/FSOFT v2/1 Internal use 8/19
A
Failed
B
Untested
N; 78%
Passed; 80%
45
Test Type
B
N; 78%
B
N; 78%
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
Condition Precondition
Can connect with server
danh sách các tham số và value đi kèm
value gồm: tử tế/hợp lệ, cầ chớn ko hợp lệ, giá trị biên/boundary
valud n 2 O
3 O
4 O
5 O
invalid
-2 O
22
40
Confirm Return
2 O
6 O
24 O
120 O
Exception O
Log message
"success"
"input1 is null"
Result Type(N : Normal, A : Abnormal, B : Boundary) A N N N N B A N N
Passed/Failed P P P P P F F P 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 F0 F0 F0 F0
6 6 7 8 1 I2 I3 I4 I5
D D D D
0 0 0 0
0 0 0 0
2 4 5 6
-5
ion>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
N N N A N N
P P P P P
0 0 0 0 0 0
3 3 3 3 3 3
D/ D/ D/ D/ D/ D/
F0 F0 F0 F0 F1 F1
I6 I7 I8 I9 I0 I1
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
UTCID07
UTCID08
UTCID09
Condition Precondition
Can connect with server
Input1
"1"
""
null
Input2
>=5 & <= 10
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
Passed/Failed P P P P P F F P 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 F0 F0 F0 F0
6 6 7 8 1 I2 I3 I4 I5
D D D D
0 0 0 0
0 0 0 0
2 4 5 6
15
on>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
N N N A N N
P P P F P P
0 0 0 0 0 0
3 3 3 3 3 3
D/ D/ D/ D/ D/ D/
F0 F0 F0 F0 F1 F1
I6 I7 I8 I9 I0 I1
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
UTCID07
UTCID08
UTCID09
Condition Precondition
Can connect with server
Input1
"1"
""
null
Input2
>=5 & <= 10
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
Passed/Failed P P P P P F F P 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 F0 F0 F0 F0
6 6 7 8 1 I2 I3 I4 I5
D D D D
0 0 0 0
0 0 0 0
2 4 5 6
15
on>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
N N N A N N
P P P P P
0 0 0 0 0 0
3 3 3 3 3 3
D/ D/ D/ D/ D/ D/
F0 F0 F0 F0 F1 F1
I6 I7 I8 I9 I0 I1
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
UTCID10
Condition Precondition
a
-2 O
-1 O
0 O O O
1 O O
b
0 O O
-2 O O O
2 O
c
0 O
1 O O O
3 O
5 O
Confirm Return
list
null O O O
size = 0 O
{-1/2} O
{1,1} O
{1,-3} O
Exception
Log message
"please input a>= -1" O
-5
UTCID12
UTCID13
UTCID14
UTCID15