





















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 example of a faulty program and asks the reader to identify the fault, potential test cases, and the first error state. It also explains the concept of reachability, infection, propagation, and revealability in the context of software testing. an extract from the book 'Introduction to Software Testing, Edition 2'.
Typology: Summaries
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















Manar Elkady Some of the material are retrieved from a previous course offering by Dr.Soha Makady and Prof. Amr Kamel
public static void isLeap(int year) { if (year % 4 != 0) return false; if (year % 400 == 0) return true; if (year % 100 < 0) return false; return true; }
public static bool isLeap(int year) { if (year % 4 != 0) return false; if (year % 400 == 0) return true; if (year % 100 < 0) return false; return true; } Execution states:
public static void isLeap(int year) { if (year % 4 != 0) return false; if (year % 400 == 0) return true; if (year % 100 < 0) return false; return true; } Execution states:
public static void isLeap(int year) { if (year % 4 != 0) return false; if (year % 400 == 0) return true; if (year % 100 < 0) return false; return true; } Execution states:
Introduction to Software Testing, Edition 2 (Ch 2) © Ammann & Offutt 11
Test Fault Incorrect Program State Test Oracles Final Program State Observed Final Program State Reaches Infects Propagates Reveals Incorrect Final State © Ammann & Offutt 13 Introduction to Software Testing, Edition 2 (Ch 2) Observed Final Program State
How do we deal with Faults, Errors, and Failures?
Software Testing – Basic Definitions (Cont’d)