Template_test_case (Nho Dat Lai Ten File) (1)
Template_test_case (Nho Dat Lai Ten File) (1)
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
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 UT Lab1
2 Class2 Function B Function2 UT Lab 2
3 Class3 Function C Function3 UT Lab 3
Sub total 0 0 30 0 0 0
N
Passed
A
Failed
B
Untested
Untested
100%
Untested
100%
30
est Type
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
Condition Input1
Input2
Confirm Return
Exception
Log message
-5
on>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
Condition Input1
Input2
Confirm Return
Exception
Log message
15
on>
Total Test Cases
15
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
UTCID09
UTCID10
Condition num
5 O
10 O
-5 O
1100 O
0 O
1000 O
1 O
2 O
-1 O
1001 O
Confirm Return
1 O O
0 O O O O
Exception O O O O
Condition VP IP
num la nguyen to tu 0 den 1000 <0
ko la nguyen to tu 0 den 1000 >1000
Expected result
1
0
Exception
Exception
0
0
0
1
Exception
Exception