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



tải về 6.34 Mb.
Chế độ xem pdf
trang15/25
Chuyển đổi dữ liệu03.04.2023
Kích6.34 Mb.
#54490
1   ...   11   12   13   14   15   16   17   18   ...   25
Foundations of Software Testing ISTQB Certification 3rd ed


partition.
88
Chapter 4 Test design techniques


We recommend that you test the partitions separately from boundaries
– this
means choosing partition values that are NOT boundary values.
However, if you use the three-value boundary value approach, then you would
have valid boundary values of 1, 2, 98 and 99, so having a separate equivalence
value in addition to the extra two boundary values would not give much additional
benefit. But notice that one equivalence value, e.g. 10, replaces both of the extra
two boundary values (2 and 98). This is why equivalence partitioning with two-
value boundary value analysis is more efficient than three-value boundary value
analysis.
Which partitions and boundaries you decide to exercise (you don
’t need to test
them all), and which ones you decide to test first, depends on your test objectives.
If your goal is the most thorough approach, then follow the procedure of testing
valid partitions first, then invalid partitions, then valid boundaries and finally
invalid boundaries. However if you are under time pressure and cannot test
everything (and who isn
’t?), then your test objectives will help you decide what
to test. If you are after user confidence of typical transactions with a minimum
number of tests, you may do valid partitions only. If you want to find as many
defects as possible as quickly as possible, you may start with boundary values,
both valid and invalid. If you want confidence that the system will handle bad
inputs correctly, you may do mainly invalid partitions and boundaries. Your
previous experience of types of defects found can help you find similar defects;
for example if there are typically a number of boundary defects, then you would
start by testing boundaries.
Equivalence partitioning and boundary value analysis are described in most
testing books, including [Myers 1979] and [Copeland 2003]. Examples of types of
equivalence classes to look out for are given in [Kaner et al. 1993] Equivalence
tải về 6.34 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   11   12   13   14   15   16   17   18   ...   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