









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An excerpt from the book 'Introduction to Software Testing' by Ammann & Offutt, focusing on Chapter 5. The chapter discusses the shift from phase-based testing to criteria-based testing, introducing concepts like test coverage criteria, structures for modeling software, and the importance of coverage in testing. The authors explain how to define models of software and find ways to cover them, using jelly beans as an example.
Typology: Summaries
1 / 16
This page cannot be seen from the preview
Don't miss anything!










( 2nd edition )
http://www.cs.gmu.edu/~offutt/softwaretest/ 20 September 2015
Old view focused on testing at each software development phase as being very different from other phases
Test Requirements : A specific element of a software artifact that a test case must satisfy or cover Coverage Criterion : A rule or collection of rules that impose test requirements on a test set A tester’s job is simple : Define a model of the software, then find ways to cover it
These structures can be extracted from lots of software artifacts
Flavors :
Criteria 1:
if (x > y) { cout<<“Say Hello”; if (y > x) { cout<<“Say Good Bye”;//DEAD code } }
Does test set T1 satisfy the flavor criterion? Does T1 suffer from redundancy? ( Minimal test sets ) Can T1 be minimal? T1 = { three Lemons, one Pistachio, two Cantaloupes, one Pear, one Tangerine, four Apricots } Does test set T2 satisfy the flavor criterion? T2 = { One Lemon, two Pistachios, one Pear, three Tangerines } Does test set T2 satisfy the color criterion?
Criteria Subsumption : A test criterion C1 subsumes C2 if and only if every set of test cases that satisfies criterion C1 also satisfies C Must be true for every set of test cases Examples :
Chapter 5 from the course’s textbook: “Introduction to Software Testing”, Cambridge University Press. P. Amman and J. Offutt, Second Edition, 2017.