





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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)