Request Replay
Capture real page traffic and convert it into mock rules for replay in another environment. Two modes are available:
- Export as mocks converts every request currently in the monitor list and is useful for initial-page data.
- Record and export captures only requests created while recording is active and is useful for a focused interaction.
Export the initial request set
Choose Export as mocks from the monitor action menu:
- Every request in the current monitor list is converted into a rule.
- The result is downloaded as a
JSONfile.
To avoid creating a file, choose Add all to Mock list instead. The requests are added directly to the default group.
Record an interaction
- Click the circular Record button in the monitor panel.
- Select Start recording.
- Interact with the page to trigger the requests you need.
- Open the menu again and select Stop recording.
- Requests captured during the recording receive a
RECmarker. - Select Export recording as mocks.
Export format:
jsonc
{
"version": 1,
"exportedAt": "2025-01-01T00:00:00.000Z",
"source": "recording",
"scope": "recorded-requests",
"group": "default",
"count": 5,
"mocks": [
// Complete MockItemData objects are omitted from this example.
],
}Import the recording
From the Mock list action menu, select Import → Import Mock file and choose the exported JSON file.
You can import into an existing group or create a new one.
