Browser and WebSocket
Choose the workflow by what you want to verify. You can start on your machine with proxymock and use the same recordings in a Speedscale Cloud replay on a registered Kubernetes cluster.
| I want to | On my machine with proxymock | In Kubernetes or Speedscale Cloud |
|---|---|---|
| Verify what a user can do in the UI, with recorded or live API responses | Record or write a Playwright journey, then run proxymock replay --browser. | Start a browser replay with the Kubernetes CLI path, the Cloud CLI path, or the dashboard. Inspect steps, API calls, web vitals, and failure artifacts. |
| Capture the network calls a browser makes so I can inspect or mock them | Route a browser through proxymock record, then serve the recording with proxymock mock. | Record a browser journey locally and push the recording and journey to Cloud when you want to reuse them from a snapshot. |
| Check a WebSocket service for message regressions or behavior under load | Record an inbound session, then use proxymock replay against the service. To stand in for a downstream socket, record the outbound session and run proxymock mock. | Capture a session into a snapshot, then run a regression or load replay from the dashboard. Use the responder when a workload needs a recorded WebSocket dependency. |
Choose a guide
- Test a frontend from local recording to Cloud replay. Use the mock-lab demo shop to replay journeys with recorded and live API responses, find the cause of each failure, heal a renamed button, and read the runs in Speedscale Cloud.
- Capture browser traffic with proxymock. Set up a Firefox proxy and inspect or mock the recorded calls.
- Test WebSockets with proxymock. Replay a captured session against a service and serve the same exchange as a dependency mock.
- Test WebSockets in Speedscale Cloud. Capture a snapshot, run replays, and inspect the handshake and messages.
What browser journeys can do
| Task | What you get | Read more |
|---|---|---|
| Write journeys | Record a journey with proxymock record --browser, explore a recorded user session into a spec, or describe a journey in plain language with proxymock journeys create. | Write journeys, Explore and heal journeys |
| Sign in | Storage state, fresh tokens per run, several roles and users, authenticator codes, passkeys, and single sign-on. | Start signed in |
| Isolate the frontend | Answer the frontend's API calls from the recording, including calls to its own origin, or send them to the real APIs and name the calls that changed. | Mocks and real APIs |
| Run anywhere | Your machine, a cluster from your kubeconfig, a registered cluster through Speedscale Cloud, the dashboard, CI, preview deployments, and coding agents over MCP. | Where journeys run |
| Cover more browsers | Your own playwright.config, Chromium, Firefox and WebKit, devices, retries, video, and sharding across CI jobs. | Playwright config and run settings |
| Check more than clicks | Web vitals goals, screenshot and ARIA snapshot baselines, and axe accessibility scans. | Screenshots and ARIA snapshots, Accessibility scans |
| Find the cause | Each step tied to the API calls it made, the likely cause of a failure, screenshots, videos, and traces in Playwright's trace viewer. | Read the results |
| Keep journeys healthy | Pass history, flaky detection and quarantine, locator heal with a pull request, model-assisted recovery during a run, and screenshot review in a pull request. | Run journeys on your machine, Explore and heal journeys |
What WebSocket testing can do
| Task | What you get | Read more |
|---|---|---|
| Capture | The upgrade and every text, binary, and control message in both directions, linked to its connection. | How Speedscale captures WebSocket traffic |
| Regression test | A fresh handshake per virtual user, recorded client messages sent in order, and each live server message compared with the recording. | Replaying WebSocket sessions |
| Load test | Many virtual users, each with its own connections, through proxymock or a Speedscale Cloud load config. | Load testing |
| Mock a dependency | The responder accepts the client's upgrade, checks its messages, and sends the recorded server messages, including pushes. | Mocking WebSocket endpoints |
Playwright journeys check what the browser renders and how it behaves. WebSocket traffic replays check the upgrade and message exchange against a service. Start with the corresponding workflow, then add the other when you need both kinds of evidence.