N this chapter, we will introduce you to the fundamentals of testing: why testing is



tải về 6.34 Mb.
Chế độ xem pdf
trang8/25
Chuyển đổi dữ liệu03.04.2023
Kích6.34 Mb.
#54490
1   ...   4   5   6   7   8   9   10   11   ...   25
Foundations of Software Testing ISTQB Certification 3rd ed


Partitioning
Boundary Value
Analysis
Decision Tables
State Transition
Use case testing
F I G U R E 4 . 1
Testing techniques
Section 2 Categories of Test Design Techniques 79


Categorizing tests into black and white-box is mentioned in a number of testing
books, including [Beizer 1990], [Black 2007] and [Copeland 2003].
4.2.4 Structure-based (white-box) testing techniques
Structure-based testing techniques (which are also dynamic rather than static) use the
internal structure of the software to derive test cases. They are commonly called
‘white-box’ or ‘glass-box’ techniques (implying you can see into the system) since
they require knowledge of how the software is implemented, that is, how it works.
For example, a structural technique may be concerned with exercising loops in the
software. Different test cases may be derived to exercise the loop once, twice, and
many times. This may be done regardless of the functionality of the software. All
structure-based techniques have the common characteristic that they are based on
how the software under test is constructed or designed. This structural information is
used to assess which parts of the software have been exercised by a set of tests (often
derived by other techniques). Additional test cases can then be derived in a systematic
way to cover the parts of the structure that have not been touched by any test before.
4.2.5 Experience-based testing techniques
In experience-based techniques, people’s knowledge, skills and background are a
prime contributor to the test conditions and test cases. The experience of both
technical and business people is important, as they bring different perspectives to
the test analysis and design process. Due to previous experience with similar
systems, they may have insights into what could go wrong, which is very useful
for testing. While previous versions of the Foundation syllabus classified
experience-based techniques as black-box types of test design, the Foundation
syllabus now implicitly acknowledges the common practice of using both structural
and behavioural insights to design experience-based tests.
All experience-based techniques have the common characteristic that they are
based on human knowledge and experience, both of the system itself (including the
knowledge of users and stakeholders) and of likely defects. Test cases are therefore
derived in a less systematic way, but may be more effective.
4.2.6 Where to apply the different categories of techniques
Specification-based techniques are appropriate at all levels of testing (component
testing through to acceptance testing) where a specification exists. When performing
system or acceptance testing, the requirements specification or functional specifica-
tion may form the basis of the tests. When performing component or integration
testing, a design document or low-level specification forms the basis of the tests.
Structure-based techniques can also be used at all levels of testing. Developers
use structure-based techniques in component testing and component integration
testing, especially where there is good tool support for code coverage. Structure-
based techniques are also used in system and acceptance testing, but the structures
are different. For example, the coverage of menu options or major business transac-
tions could be the structural element in system or acceptance testing.
Experience-based techniques are used to complement specification-based and
structure-based techniques, and are also used when there is no specification, or if
the specification is inadequate or out of date. This may be the only type of technique
Experience-based test
design technique
Procedure to derive and/
or select test cases based
on the tester
’s
experience, knowledge
and intuition.
80
Chapter 4 Test design techniques


used for low-risk systems, but this approach may be particularly useful under extreme
time pressure
– in fact this is one of the factors leading to exploratory testing.
4 . 3
S P E C I F I C A T I O N - B A S E D O R B L A C K - B O X
T E C H N I Q U E S
SYLLABUS LEARNING OBJECTIVES FOR 4 .3
SPECIFICATION-BASED OR BLACK-BOX TECHNIQUES (K3)
LO-4.3.1 Write test cases from given software models using equivalence
tải về 6.34 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   4   5   6   7   8   9   10   11   ...   25




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương