Software Testing / Learning brief

Tom plays back the phone call

What this means in plain language

The Daily List server is slow and sometimes down. A tape-recorder story shows how Tom records the page's talk with the server, replays it, plays the server for a live feed and keeps the tape fresh.

Understand the full idea, step by step

Imagine two people on a telephone. You record the whole call. Later you play the tape to one of them and ask whether the other side sounds right. The second person does not need to be awake.

Tom wants the same for the page and the server.

The tape would let him test the page alone, even when the server is asleep.

Evidence & review

REVIEWED 2026-10-18

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.

Playwright Test as taught in this academy, with an invented app and invented people. Tool details come from vendor reference pages seen only as search excerpts.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The tape recorder is a teaching picture. The site address is a teaching address that does not exist.

Sources for this brief — 6 sources
  1. Market practice

    Page (Playwright documentation) ↗ — Microsoft (Playwright) · page.routeFromHAR replays responses from a HAR file; notFound can be abort or fallback; update set to true rewrites the file with real network data (search excerpt, page not opened)

    Describes routeFromHAR and its notFound and update options. Vendor documentation, not a standard. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: pause, route/HAR/WebSocket and waitForResponse. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  2. Market practice

    WebSocketRoute (Playwright documentation) ↗ — Microsoft (Playwright) · A routed WebSocket does not connect to the real server by default; connectToServer opens the real connection and messages are forwarded unless the handler handles them; added with routeWebSocket in a recent version (search excerpt, page not opened)

    Describes routeWebSocket, onMessage, send and connectToServer. Vendor documentation, not a standard. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: message direction, server connection and handler routing. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  3. Market practice

    Mock APIs (Playwright documentation) ↗ — Microsoft (Playwright) · Mock API requests with page.route; HAR files can be recorded and replayed; WebSocket routing exists in recent versions (search excerpt, page not opened)

    Describes intercepting a request by Uniform Resource Locator (URL) pattern and fulfilling it with fixed data, and says a matching request stalls unless continued, fulfilled or aborted. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    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.

  4. Market practice

    WebSocket API (WebSockets) (Mozilla developer docs) ↗ — Mozilla (developer documentation) · The WebSocket API opens a two-way session between the browser and a server so each side can send messages without a new request (search excerpt, page not opened)

    Per the search excerpt, a WebSocket keeps a live two-way session open between browser and server, so messages can be sent and received without asking each time. · Checked 2026-10-18

    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.

  5. Market practice

    RFC 6455: The WebSocket Protocol ↗ — Internet Engineering Task Force · The WebSocket protocol gives a long-lived two-way connection between a browser and a server (search excerpt, page not opened)

    Defines the WebSocket opening handshake over HyperText Transfer Protocol (HTTP) followed by message framing over one connection. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: December 2011. 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.

    8 November2026 bounded primary-source update: RFC6455 December2011 Standards Track; opening overview and §§7.1.2–7.1.6,7.2.3 actually read 8 November2026. Optional code/reason, abnormal closure and client backoff; not automatic application replay.

  6. 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 HERERecorded traffic and WebSockets: HAR files and routeWebSocketRecord the real conversation between the page and the server once, replay it in later runs, and stand in for a live WebSocket feed when a test needs one.Opens at L0 Explain simply · about 19 min

Related briefs