Software Testing / Learning brief

Mei matches requests and shapes slow and broken answers

What this means in plain language

Mei adds match rules, a delay, a fault and a scenario to WireMock stubs.

Understand the full idea, step by step

Analogy: a post sorting office. A clerk reads each address and rule before choosing a bin. Some bins hold letters that are held back for an hour. One bin holds damaged letters. A set of bins changes after the first letter arrives.

The address rules are match rules, the held letters are delays, the damaged ones are faults, and the changing bins are scenarios.

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 4 sources
  1. Market practice

    Request matching (WireMock documentation) ↗ — WireMock · WireMock matching pages: a stub can match on the address, method, query parameters, headers, cookies and body, a header entry uses an operator such as contains, and body patterns include exact data equality and path matchers (search excerpt, page not opened)

    The WireMock matching pages say a stub can match on the address, the method, query parameters, headers, cookies and the body. Header entries use an operator such as contains. The body patterns list offers matchers for exact data equality and for paths inside a body. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    WireMock topic review, 8 November 2026: URL matching: path and query versus path only, plus request attributes. Current official page opened 8 November 2026.

  2. Market practice

    Simulating faults (WireMock documentation) ↗ — WireMock · WireMock fault pages: a response can carry a fixed delay in milliseconds and a fault setting with values such as an empty response, a malformed chunk and a connection reset (search excerpt, page not opened)

    The WireMock pages on faults describe a fixed delay in milliseconds on a response. They also describe a fault setting on the response with values such as an empty response, a malformed chunk and a connection reset. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    WireMock topic review, 8 November 2026: Per-stub fixed delays and bad responses. Current official page opened 8 November 2026; delays are milliseconds and connection faults differ from status replies.

  3. Market practice

    Stateful behaviour (WireMock documentation) ↗ — WireMock · WireMock state pages: a scenario starts in the Started state, a stub names the state it needs and may set a new state, and the scenario list is read at the admin address (search excerpt, page not opened)

    The WireMock pages on state say a scenario is a state machine that begins in the Started state. A stub names the state it needs and may set a new state. The scenario list is available at the admin address. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    8 November 2026: actual WireMock Java Scenarios section, Java/JSON example and reset operations opened. Models selected state transitions; not reproduction of an entire real service or actual WireMock execution.

    WireMock topic review, 8 November 2026: Scenarios, Started state and POST /__admin/scenarios/reset. Current official page opened 8 November 2026.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREWireMock part 2: match requests and shape slow and broken answersChoose which calls a stub answers, set the status, the delay and a fault, and make a stub change its answer after a first call.Opens at L0 Explain simply · about 16 min

Related briefs