Integration Scenarios, storyboards, scoping use cases or just a related set of stories describe pathways through a system. Usually there is an intended flow, the happy path, and it is the most-tested path in the product because it is the one people build against. Bug density on the happy path is low. Alternative paths, the deliberate branches written as stories or spelled out in a scenario, were thought about before they were built, and they too are usually tested and automated at low levels of done.

Happy path, alternative paths and fringe cases through a systemHappy pathwritten down, built first, tested mostAlternative pathswritten down as stories; usually testedFringe casesnever written down; where the bugs liveExploratory testing, chaos experiments and fuzzing exist to find the dashed lines.Fringe cases across Integration Scenarios (one product's output into another's unusual state) are the richest seam.
Happy path, alternative paths and fringe cases. The dashed lines were never written down, which is why they are where the Problems are.

Fringe cases are the paths nobody wrote down, and they are where the Problems are. The richest seam is across Integration Scenarios: one product’s output arriving in another product’s unusual state, a retry hitting a half-completed transaction, a user doing step four before step two because the browser back button exists. Professional test techniques such as exploratory testing exist to draw these out, and good exploratory testers are startlingly effective at it. Random techniques help too: Netflix’s Chaos Monkey, which kills production instances on purpose, is the famous example, and chaos engineering, fuzzing and random user simulation are the same idea applied to code paths, inputs and infrastructure. A chaos experiment against a service’s SLO with an availability zone removed is a fringe-case test for the architecture.

Dealing with Problems

Testing and other quality activities uncover things that are not cleanly bugs or changes: a design that technically works but misleads, an interaction that users keep getting wrong, a misunderstanding between two teams about a field. We capture all of them as Problems, which can be thought of as instances of quality risks. Spending time categorising them is less useful than spending it repairing the relationship between the customer and the product.

Quality can be measured in several ways. Workflow metrics covers bug frequency, and especially the distinction between Problems found in development and Problems that escaped to users. Quality Confidence combines requirement coverage with test-pass stability into one honest number. The most effective measure of all is direct user feedback, and for internal systems and market products alike we recommend instrumenting basic usage so that teams can see how much their work is actually used. A feature nobody uses has a quality problem, whatever the tests say.

Last updated