Software Testing Basic Concepts
Software Testing Basic Concepts
Software Testing Basic Concepts
Basic Concepts
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Agenda
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Introduction
Objectives:
To arrive at a common understanding of the scope of testing
activity
To familiarize the audience with the terminology used in the
testing work
Understand the required test skills of developers
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Testing definition
Process:
Sequence of steps performed for a given purpose. (IEEE)
Software Process
A set of activities, methods, practices, and transformations
that people use to develop and maintain software and
associated products.(SEI-CMM)
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Testing Objectives
Secondary
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Misunderstandings
about testing
Testing is debugging
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Theory
Reality
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Defect concepts
Objectives:
Understand the definition of defect
Understand the cost of a bug to software
development
Understand the common types of defects and
their perceived severity
What is defect?
A defect is any error found by testing and
reviewing activities (All errors found by internal
reviewer, external reviewer and customer).
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
04e-BM/NS/HDCV/FSOFT v2/2
Products
Quality Control
Processes
Other sources:
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
10
04e-BM/NS/HDCV/FSOFT v2/2
Cost of defects
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
11
04e-BM/NS/HDCV/FSOFT v2/2
Step 2
Analyze defects
Step 3
Fix defects
Step 4
Re-test
Defect classification:
Open defects
Closed defects
Leakage
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
12
04e-BM/NS/HDCV/FSOFT v2/2
Error
Assigned
Corrected
Cancelled
Accepted: by PM/PTL/Customer
Closed: by tester/PM/PTL
Leakage Defects:
Acceptance test
After Release test
After Release review
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
13
04e-BM/NS/HDCV/FSOFT v2/2
Defect type
Functionality
o Requirement misunderstanding
o Feature missing
o Coding logic
o Business logic
User Interface
Performance
Design issue
Coding standard
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
14
04e-BM/NS/HDCV/FSOFT v2/2
Work product
Software module
Software Package
ADD
DDD
Test Cases
(UT/IT/ST)
Quality control
activity
Code review
Unit test
Integration test
System test
Document review
Inspection
Audit
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
15
Defect origin
Requirement
Design
Coding
Test
CM
Document control
Priority
Immediately
High priority
Normal priority
Low priority
04e-BM/NS/HDCV/FSOFT v2/2
Test Process
Objectives:
Understand the steps followed for a test
process
Understand test planning process
FSoft Test Process
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
16
04e-BM/NS/HDCV/FSOFT v2/2
Tester Competency
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
17
04e-BM/NS/HDCV/FSOFT v2/2
Tester Competency
Technical skills
Familiarity with software development
architectures, processes
Familiarity with testing methodologies
Very clearly articulate specs, designs, business
rules, inspection reports, configurations, code
changes, TP, TC, bug reports, user manuals,
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
18
04e-BM/NS/HDCV/FSOFT v2/2
Initiation
Definition
Solution
Construction
Transition
Termination
Test process
Test
Planning
Test Preparation
Test Execution
Perform
testing
SRS study
Create
Test Plan
(by
Test leader)
Create
Test
Design
Review
&
Approva
l
Bug
Reportin
g
- Bug Fixing
- TC
Updating
- Develop
test cases,
test scripts
- Prepare
test data
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
Data Analysis
Test
Repor
t
- Analyze
root
Causes of
defects
- Identify
actions
Bug
Tracking
(Re-test)
19
04e-BM/NS/HDCV/FSOFT v2/2
Input:
Output:
Test documents: Test plan, Test cases and
procedures, Test script, Test data
Defect list
Test report (Pass/Fail of each TC, Summary report)
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
20
04e-BM/NS/HDCV/FSOFT v2/2
FSOFT tools
Test Plan
Test case specification
Test report
Defect analysis report
Defect tracking tool: DMS
Test Effort tracking tool: Timesheet
Test schedule: FSoft Insight
Test automation tools
Rational Robot (Functional & Performance test)
OpenSTA (Open source)
Witir (Open source)
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
21
04e-BM/NS/HDCV/FSOFT v2/2
Test strategy
Objectives
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
22
04e-BM/NS/HDCV/FSOFT v2/2
V-Model
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
23
04e-BM/NS/HDCV/FSOFT v2/2
Testing stages
There are 4 stages of Testing:
Unit Test
Integration Test
System Test
Acceptance Test
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
24
04e-BM/NS/HDCV/FSOFT v2/2
Unit Test
Purpose: to verify that the
component/module functions properly
Check:
Statement
Branch
Path
Condition
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
25
04e-BM/NS/HDCV/FSOFT v2/2
Integration Test
Purpose:
To ensure that code is implemented and
designed properly
to take unit tested modules and build a
program structure that has been dictated by
design
IT only after UT
Combining the individual components to
uncover errors associated with interfacing
Normally: Black box oriented
Doer: independent Test team
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
26
04e-BM/NS/HDCV/FSOFT v2/2
System Test
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
27
04e-BM/NS/HDCV/FSOFT v2/2
Acceptance Test
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
28
04e-BM/NS/HDCV/FSOFT v2/2
Testing types
Functional test
Function testing
User Interface testing
Data and database integrity testing
Business cycle testing
Performance profiling
Load testing
Stress testing
Volume testing
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
29
04e-BM/NS/HDCV/FSOFT v2/2
Test techniques/methods
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
30
04e-BM/NS/HDCV/FSOFT v2/2
Objectives
Understand the principles of test plan & test design
Understand the concepts for test case design
Understand the structure of test cases
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
31
04e-BM/NS/HDCV/FSOFT v2/2
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
32
04e-BM/NS/HDCV/FSOFT v2/2
Test Plan
What to do
Who does it: Test team, Development team
How to do it: Techniques
When to do it
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
33
04e-BM/NS/HDCV/FSOFT v2/2
Test Plan
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
34
04e-BM/NS/HDCV/FSOFT v2/2
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
35
04e-BM/NS/HDCV/FSOFT v2/2
Specifications
Basic flow
Alternative flow
Test Design
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
36
04e-BM/NS/HDCV/FSOFT v2/2
Test Design
Modules or functions
Large items
GUI
Functions
Performance
Number of TC:
Total
For each module
For each type: GUI/Function
For normal/abnormal/boundary cases
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
37
04e-BM/NS/HDCV/FSOFT v2/2
Test Case
Test environment
Test condition
A test case includes:
Action (sample: click on Add button, on a link, input
birth day)
Input data (valid/invalid/boundary data)
Expected result (message, )
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
38
04e-BM/NS/HDCV/FSOFT v2/2
Testing Measurement
Objectives
Understand the need for metrics and measurement
in Testing
Understand the minimal metrics required for the
measurement of the testing activity
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
39
04e-BM/NS/HDCV/FSOFT v2/2
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
40
04e-BM/NS/HDCV/FSOFT v2/2
Measurements:
Defects in DMS
Test effort in Timesheet
Defect rate in Fsoft Insight: Weighted defects/ project size (in
UCP)
Test coverage: number of executed test cases/ Total number
of test cases
Test successful coverage: number of test cases executed
successfully/total number of test cases
Defect removal efficiency
Test effectiveness
Weighted defects/ Test execution effort
Leakage
Weighted defects found after release/ project size
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
41
04e-BM/NS/HDCV/FSOFT v2/2
Q&A
Copyright
2006 FPT
Software
FPT SOFTWARE
TRAINING
MATERIAL
Internal use
42
04e-BM/NS/HDCV/FSOFT v2/2