Skip to Main Content
Foundations of Software Testing: Fundamental Algorithms and Techniques
book

Foundations of Software Testing: Fundamental Algorithms and Techniques

by Aditya P. Mathur
March 2007
Intermediate to advanced content levelIntermediate to advanced
709 pages
20h 23m
English
Pearson India
Content preview from Foundations of Software Testing: Fundamental Algorithms and Techniques
Test-Adequacy Assessment Using Program Mutation
Steps 7, 8, and 9: Mutant execution and classification
Execute M against t
Is P(t) = M(t)?
P(t) for all tests
t in T
Ye
s
t
No
8
7
M(t)
P(t)
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

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

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

Aditya P. Mathur
Fundamentals of Computer Programming and IT by Pearson

Fundamentals of Computer Programming and IT by Pearson

Ashok Namdev Kamthane, Rohit Khurana

Publisher Resources

ISBN: 9788131707951