0% found this document useful (0 votes)
5 views

Lesson 3.2 - Create UT Case With PCL

Uploaded by

vinhnqda180069
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Lesson 3.2 - Create UT Case With PCL

Uploaded by

vinhnqda180069
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Prepare unit test case using

PCL template

Code: N/A
Authors: HaiPT1
Course: <Course-Name>
Conductor: <Acc> –
<Unit>

© FPT SOFTWARE – TRAINING MATERIAL 1 04e-BM/DT/HDCV/FSOFT v2.2


Objectives

The course helps attendees understand:


 Understand what is PCL and how to make it.

© FPT SOFTWARE – TRAINING MATERIAL 2 04e-BM/DT/HDCV/FSOFT v2.2


Contents
 Overview
 What is PCL
 Sheets are in PCL:
• Cover sheet
• FunctionList heet
• Test Report ssheet
• Test function sheets

 Content in Test function sheet


 Combination of test cases.
 Condition and confirmation of Test cases.
 Other items:
• Function Code, Function Name, Created By, Executed By, Lines of code, Test requirement

 Examples: a example
 Real code
 PCL for real code (function)

© FPT SOFTWARE – TRAINING MATERIAL 3 04e-BM/DT/HDCV/FSOFT v2.2


Overview

 What is PCL (Program Check List)

© FPT SOFTWARE – TRAINING MATERIAL 4 04e-BM/DT/HDCV/FSOFT v2.2


Overview

 Cover sheet: General information of the project and Unit


Test cases
 FunctionList sheet:
• The list of Classes and Functions to be tested.
• 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.
 Test Report sheet: provide the overview results of Unit
test:
• Test coverage
• Test successful coverage
• Summary: Normal/Abnormal/Boundary cases

© FPT SOFTWARE – TRAINING MATERIAL 5 04e-BM/DT/HDCV/FSOFT v2.2


Content of Function

 Information: The list of Classes and Functions


to be tested.
• Function name/Code
• Number LOC
• Number of lack TCs
• Test requirement: brief description of function to be
tested
• Number of TC: Normal, Abnormal, Boundary
(automatically)
 Test Case: Combination of:
• Condition
• Confirmation

© FPT SOFTWARE – TRAINING MATERIAL 6 04e-BM/DT/HDCV/FSOFT v2.2


Condition

 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

© FPT SOFTWARE – TRAINING MATERIAL 7 04e-BM/DT/HDCV/FSOFT v2.2


Confirmation

 Confirmation is expected result to check output of


each function
 Can include:
• Output result
• Output log messages in log file
• Output screen messages

 Test case result:


• P/OK: Passed
• F/NG: Failed

© FPT SOFTWARE – TRAINING MATERIAL 8 04e-BM/DT/HDCV/FSOFT v2.2


DEMO & QA

© FPT SOFTWARE – TRAINING MATERIAL 9 04e-BM/DT/HDCV/FSOFT v2.2

You might also like