Skip to Main Content
Foundations of Software Testing (Fundamental Algorithms and Techniques) by Pearson
book

Foundations of Software Testing (Fundamental Algorithms and Techniques) by Pearson

by Aditya P. Mathur
May 2024
Intermediate to advanced content levelIntermediate to advanced
765 pages
21h 57m
English
Pearson India
Content preview from Foundations of Software Testing (Fundamental Algorithms and Techniques) by Pearson
Test-Adequacy Assessment Using Program Mutation
Steps 7, 8, and 9: Mutant execution and classification
%XECUTEMAGAINSTt
)SPt = Mt
PtFORALLTESTS
tIN4
9E
S
W
.O
8
7
Mt
Pt
So far we have selected
a mutant M for execution
against test case t. In Step
7, we execute M against t.
In Step 8, we check if the
output generated by exe-
cuting M against t is the
same or different from that
generated by executing P
against t.
Example 7.11: So far we have selected mutant M
1
and test case t
1
.In
Step 7, we execute M
1
against t
1
. Given the inputs x = 0 and y = 0,
condition x + 1 < y is false leading to 0 as the output. Thus we see
that P(t
1
) = M
1
(t
1
). This implies ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Effective Software Testing, Video Edition

Effective Software Testing, Video Edition

Mauricio Aniche

Publisher Resources

ISBN: 9781299486720