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

Lecture 09 Boundary Value Testing-1

Uploaded by

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

Lecture 09 Boundary Value Testing-1

Uploaded by

matiullah.matvi
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 37

Lecture 09

Boundary Value Analysis

BSSE (Software Quality Engineering) SZABIST-Islamabad 1


 Boundary Value Analysis/Testing
 Normal BVT
 Special BVT
 Worst Case BVT
 Robustness Testing
 Random Testing
 Equivalence Partitioning Testing

BSSE (Software Quality Engineering) SZABIST-Islamabad 2


BSSE (Software Quality Engineering) SZABIST-Islamabad 3
Boundary Value Testing

BSSE (Software Quality Engineering) SZABIST-Islamabad 4


Boundary Value Testing

BSSE (Software Quality Engineering) SZABIST-Islamabad 5


Boundary Value Testing

 X(min) Minimum Value


 X(min+) Just above Minimum Value
 X(nom) Nominal Value
 X(max-) Just below Maximum Value
 X(max) Maximum Value

BSSE (Software Quality Engineering) SZABIST-Islamabad 6


BSSE (Software Quality Engineering) SZABIST-Islamabad 7
30

BSSE (Software Quality Engineering) SZABIST-Islamabad 8


BSSE (Software Quality Engineering) SZABIST-Islamabad 9
9

BSSE (Software Quality Engineering) SZABIST-Islamabad 10


BSSE (Software Quality Engineering) SZABIST-Islamabad 11
Example

BSSE (Software Quality Engineering) SZABIST-Islamabad 12


1 and More than one variable

BSSE (Software Quality Engineering) SZABIST-Islamabad 13


Normal Boundary Value Testing

 X(min) Minimum Value


 X(min+) Just above Minimum Value
 X(nom) Nominal Value
 X(max-) Just below Maximum Value
 X(max) Maximum Value

BSSE (Software Quality Engineering) SZABIST-Islamabad 14


30

BSSE (Software Quality Engineering) SZABIST-Islamabad 15


 In case of 2nd variable, only one variable can use its
boundary value and second will use its avg value

BSSE (Software Quality Engineering) SZABIST-Islamabad 16


BSSE (Software Quality Engineering) SZABIST-Islamabad 17
Special Value Testing
 The tester/developer has reasons to believe
these values would execute statements having
risk of containing bugs.
 General Risks: applicable across all programs.
Example Boundary value testing
 Special Risks: depends upon types of program.
Example- Leap year not considered, calculating days between
two dates as some months have 28, 29 days and
some have 30 or 31 days.

BSSE (Software Quality Engineering) SZABIST-Islamabad 18


BSSE (Software Quality Engineering) SZABIST-Islamabad 19
BSSE (Software Quality Engineering) SZABIST-Islamabad 20
Robustness Test Cases

 As we can see in the graph, we have min – and max + test cases as well which
means that Robustness Testing covers Boundary Value Testing and in addition
to BVT, it covers extra test cases as well.

BSSE (Software Quality Engineering) SZABIST-Islamabad 21


n is the number of variables

BSSE (Software Quality Engineering) SZABIST-Islamabad 22


BSSE (Software Quality Engineering) SZABIST-Islamabad 23
Total Test Cases=Number of Testing points for Variable X1 * Number of Testing points for Variable X2

BSSE (Software Quality Engineering) SZABIST-Islamabad 24


BSSE (Software Quality Engineering) SZABIST-Islamabad 25
BSSE (Software Quality Engineering) SZABIST-Islamabad 26
BSSE (Software Quality Engineering) SZABIST-Islamabad 27
BSSE (Software Quality Engineering) SZABIST-Islamabad 28
Equivalence Partitioning
Testing

BSSE (Software Quality Engineering) SZABIST-Islamabad 29


Equivalence Partitioning
Testing

BSSE (Software Quality Engineering) SZABIST-Islamabad 30


Guidelines for Equivalence Partitioning :

 If the range condition is given as an input, then


one valid and two invalid equivalence classes are
defined.
 If a specific value is given as input, then one valid
and two invalid equivalence classes are defined.
 If a member of set is given as an input, then one
valid and one invalid equivalence class is
defined.
 If Boolean no. is given as an input condition, then
one valid and one invalid equivalence class is
defined.

BSSE (Software Quality Engineering) SZABIST-Islamabad 31


BSSE (Software Quality Engineering) SZABIST-Islamabad 32
BSSE (Software Quality Engineering) SZABIST-Islamabad 33
Example 3

34
Example 4:

35
Example 5

36
Advantage of Equivalence Partitioning Testing
 An advantage of this approach is it reduces the time required for performing testing of
a software due to less number of test cases.
 Example:
 Assume that the application accepts an integer in the range 100 to 999
 Valid Equivalence Class partition: 100 to 999 inclusive.
 Non-valid Equivalence Class partitions: less than 100, more than 999,
decimal numbers and alphabets/non-numeric characters.

BSSE (Software Quality Engineering) SZABIST-Islamabad 37

You might also like