vu-sqa-lecture27 of Software quality assurance .ppt

abpassion478 13 views 28 slides Jun 09, 2024
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

sQA


Slide Content

1
Software Testing –5 –
BBT Techniques
Lecture # 27
1

2
Recap
•Discussed white-box testing techniques in
detail
2

3
Today’s Lecture
•We’ll have some more discussion on black-
box testing
•Specifically, we’ll talk about different
techniques, which are classified as black-
box techniques
3

4
Black-box Testing
4

5
Black-box Testing -1
•BBT focuses on the functional requirements
of the software
•It enables the software engineer to derive
sets of input conditions that will fully
exercise all functional requirements for a
program
•It is not an alternative to WBT, rather a it is
a complementary approach that is likely to
uncover a different class of errors
5

6
Black-Box Testing
requirements
eventsinput
output

7
Black-box Testing -2
•BBT attempts to find errors in the following
categories
–Incorrect or missing functions
–Interface errors
–Errors in data structures or external data base
access
–Behavior or performance errors
–Initialization and termination errors
7

8
Black-box Testing -3
•As BBT purposely disregards control
structure, attention is focused on the
information domain
8

9
Black-box Testing -4
•Tests are designed to answer the following
questions
–How is functional validity tested?
–How is system behavior and performance
tested?
–What classes of input will make good test
cases?

10
Black-box Testing -5
–Is the system particularly sensitive to certain
input values?
–How are the boundaries of a data class isolated?
–What data rates and data volume can the system
tolerate?
–What effect will specific combinations of data
have on system operation?
10

11
Black-box Testing -5
•By applying BBT, we derive a set of test
cases that satisfy the following criteria
–Test cases that reduce the number of additional
test cases that must be designed to achieve
reasonable testing
–Test cases that tell us something about the
presence or absence of classes of errors, rather
than an error associated only with the specific
test at hand
11

12
BBT Techniques
•Equivalence partitioning
•Boundary value analysis
12

13
Equivalence Partitioning

14
Equivalence Partitioning -1
•Equivalence partitioning is a black-box
testing method that divides the input
domain of a program into classes of data
from which test cases can be derived
•Equivalence partitioning strives to define a
test case that uncovers classes of errors,
thereby reducing the total number of test
cases that must be developed
14

15
Equivalence Partitioning -2
•An equivalence class represents a set of
valid or invalid states for input conditions
•Typically, an input condition is
–A specific numeric value
–A range of values
–A set of related values
–A boolean condition
15

16
Guidelines for Equivalence
Classes -1
•If an input condition specifies a range, one
valid and two invalid equivalence classes
are defined
•If an input condition requires a specific
value, one valid and two invalid
equivalence classes are defined
16

17
Guidelines for Equivalence
Classes -2
•If an input condition specifies a member of
a set, one valid and one invalid equivalence
class are defined
•If an input condition is boolean, one valid
and one invalid class are defined
17

18
Equivalence Partitioning
user
queriesmouse
picks
output
formats
prompts
FK
input
data

19
Sample Equivalence
Classes
user supplied commands
responses to system prompts
file names
computational data
physical parameters
bounding values
initiation values
output data formatting
responses to error messages
graphical data (e.g., mouse picks)
data outside bounds of the program
physically impossible data
proper value supplied in wrong place
Valid data
Invalid data

20
Discussion on Equivalence
Partitioning

21
Boundary Value Analysis

22
Boundary Value Analysis -1
•Boundary value analysis (BVA) is a testing
technique, which leads to a selection of test
cases that exercise bounding values
•This is because that for reasons not clearly
completely clear, a greater number of errors
tends to occur at the boundaries of the input
domain rather than in the “center”
22

23
Boundary Value Analysis -2
•BVA complements equivalence partitioning
testing technique
23

24
Boundary Value Analysis
user
queriesmouse
picks
output
formats
prompts
FK
input
data
output
domaininput domain

25
State Testing
•Uses equivalence partitioning techniques

26
Differences between BBT and WBT

27
Summary
•In today’s lecture, we have discussed black-
box testing techniques
•In the next lecture, we will talk about
testing strategies
27

28
References
•Software Engineering: A Practitioner’s
Approach by Roger S. Pressman (Chapter
17.3-17.8)
28
Tags