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
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
XIJMF (x ! = y)
{
trap_on_statement(); M3
}
XIJMF (x ! = y)
{
JG (x < y) M4
trap_on_statement();
FMTF
x
-
= y;
}
XIJMF (x ! = y)
{
JG (x < y) M5
y
-
= x;
FMTF
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 JG 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

Effective Software Testing, Video Edition

Effective Software Testing, Video Edition

Mauricio Aniche

Publisher Resources

ISBN: 9781299486720