L12 - Software Testing Quality Assurance and Maintenance...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Software Testing, Quality Assurance and Maintenance Winter 2010 Lecture 12 — January 29, 2010 Patrick Lam version 2 Graph Coverage for Specifications We’ll move further up the abstraction chain now and talk about testing based on specifications. Specification-based testing can help ensure that a system doesn’t drift too far from its intended behaviour, and tends to focus on higher-level concerns than the testing we’ve seen so far, which is based on properties of the source code. Sequencing Constraints Libraries often come with constraints on permissible actions; we call these constraints sequencing constraints. Java Iterators. Here are two possible constraints. The general format of sequencing constraints is “do X before Y”, or “don’t do W before A”. Here is another sequencing constraint, this one implicit. /* @requires size() > 0 */ public int dequeue() { . .. } /* @ensures size() = \old(size()) + 1 */ public void enqueue (int x) { . .. }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

L12 - Software Testing Quality Assurance and Maintenance...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online