Sequence diagram

Sequence diagram image
A sequence diagram shows how parts of a system interact over time, as a series of requests and responses between components. It comes from UML, the Unified Modelling Language.

Why it matters: Mapping flows helps testers and developers share an understanding of a system's states and interactions. That shared view helps decide which tests belong at which level, preventing duplicated or invalid tests.

In practice: Testers sketch sequence diagrams with developers when discussing a feature, either on a whiteboard or with a diagramming tool. Walking through each request and response often reveals missing error handling, unclear responsibilities and untested paths.

Examples:

  • Sketching the requests between a web app, its backend and a third-party service before agreeing a test strategy.
  • Spotting a missing error response by walking through a sequence diagram.

Common pitfalls:

  • Drawing diagrams once and never updating them as the system changes.
  • Diagramming only the happy path, and missing the error flows.

What's the difference between a sequence diagram and a flowchart? A flowchart shows the steps and decisions in a process. A sequence diagram shows the messages passed between components over time.
Explore MoT
Test Forward 2027 ยท Software Quality in the age of AI image
Tue, 19 Jan 2027
Test Forward is one afternoon at Station F with the QA and engineering people closing that gap in their own teams.
Quality Coaching essentials image
Develop the mindset and practical coaching techniques that help teams build shared responsibility for continuous quality
Into The Motaverse image
Into the MoTaverse is a podcast by Ministry of Testing, hosted by Rosie Sherry, exploring the people, insights, and systems shaping quality in modern software teams.
Subscribe to our newsletter