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
guish all these four mutants are sufficient to guarantee that all four
statements in F3 have been executed at least once.
trap_on_statement(); M2
while (x ! = y)
{
trap_on_statement(); M3
}
while (x ! = y)
{
if (x < y) M4
trap_on_statement();
else
x
-
= y;
}
while (x ! = y)
{
if (x < y) M5
y
-
= x;
else
trap_on_statement();
}
If the STRP is used with the entire program, the tester will be
forced to design test cases that guarantee that all statements have
been executed. Failure to design such a test set implies that there is
some unreachable code in the program.
7.10.9.2 Trap on if Condition
The STRI mutation operator is designed to provide branch analysis for
any if statements in P. When used in addition to the STRP, SSWM
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