Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Software Testing
(Verification & Validation )
Nguyễn Đức Mận
mannd@duytan.edu.vn
0904 235 945
Introduction to
Software Testing
1
11/Aug/2016
Course Objectives
• Foundations of software verification and validation
(V&V)
• Mostly a practical perspective
• Emphasis on testing (many kinds)
• Most important V&V technique in practice
• More basic coverage of other aspects
• No emphasis on tools as this will change (quickly)over
time
• But, in the future, you’ll be able to assess how useful a
tool is …
Student’s Outcome
• At the completion of this course, students will be able
to:
• 1. identify the theoretical and practical issues in
software testing; and
• 2. develop thorough and appropriate test cases for
different levels of testing; and
• 3. identify how software quality assurance
activities fit into overall product development; and
• 4. employ the responsibility in an industry job as a
software test analyst with confidence.
2
11/Aug/2016
3
11/Aug/2016
4
11/Aug/2016
F-18 crash
• An F-18 crashed because of a missing exception condition:
• An if ... then ...block without the else clause that was thought
could not possibly arise.
• In simulation, an F-16 program bug caused the virtual plane to
flip over whenever it crossed the equator, as a result of a
missing minus sign to indicate south latitude.
5
11/Aug/2016
6
11/Aug/2016
Testing
Definitions & Objectives
7
11/Aug/2016
Summary of Definitions
8
11/Aug/2016
Types of Testing
• Functional Testing: testing functional requirements.
• Functional requirements specify specific behavior or
functions of a software.
• Functional testing is thus checking the correct functionality
of a system.
• Non-functional Testing: testing non-functional requirements.
• Non-functional requirements:
• Specify criteria that can be used to judge the operation
of a system, rather than specific behaviors.
• Typical non-functional requirements are performance,
reliability, scalability, and cost.
• Non-functional requirements are often called the –ilities
of a system.
9
11/Aug/2016
10
11/Aug/2016
Test Coverage
11
11/Aug/2016
12
11/Aug/2016
13
11/Aug/2016
Test Organization
14
11/Aug/2016
Unit testing
Integration/Interface Testing
15
11/Aug/2016
System Testing
16
11/Aug/2016
17
11/Aug/2016
18
11/Aug/2016
Types of testing
• One possible classification is based on the following
four classifiers:
• C1: Source of test case generation.
• C2: Lifecycle phase in which testing takes place
• C3: Goal of a specific testing activity
• C4: Characteristics of the artifact under test
19
11/Aug/2016
20