Lesson 3.2 - Create UT Case With PCL
Lesson 3.2 - Create UT Case With PCL
PCL template
Code: N/A
Authors: HaiPT1
Course: <Course-Name>
Conductor: <Acc> –
<Unit>
Examples: a example
Real code
PCL for real code (function)
Precondition:
• Setting condition that must exist before execution of
the test case.
• Example: file A is precondition for the test case that
needs to access file A.
Values of input: 3 types
• Normal: used mainly to ensure the function works
• Boundary: limited values that contain upper and lower values
• Abnormal: non-expected values (processes exception cases)
• Example: 5<= input <= 10
N: 6, 7, 8, 9
B: 5, 10
A: -1, 4, 11