Skip to content

Convert a traffic recording into a test

A recording is only the starting point. Open it under Traffic recordings and choose Convert (also available as Convert… on each row of the list). The dialog has three tabs: Load / API test, Virtual service mock, and Download HAR.

Conversion works from the redacted copy of the recording, so masked values never end up in a test by accident.

The Download HAR tab saves the captured requests as a standard HAR 1.2 file with headers, bodies, timings, and WebSocket frames. Sensitive values stay masked by default. The Include sensitive values switch exports them unmasked; it needs a workspace admin and is audited. A recording that is too large for one file shows Too large to export in one file: filter it first or convert it instead.

The Load / API test tab builds a test in the HTTP request builder. The preview on the right updates as you change the settings.

  1. Choose which requests to keep. Under Only these, limit by Hosts, Methods, and Status classes. Path starts with keeps only paths under a prefix. Skip images, scripts, fonts and styles drops static assets. Repeats controls duplicates: Keep all, Once per path, or Once per URL. WebSocket flows and flows that failed before getting a response are always skipped.

  2. Shape the headers. Use Drop headers or Keep only to remove or allow-list headers. Headers that were masked in the recording (for example Authorization) cannot be copied as is. They are dropped, and a warning tells you so. To keep one, choose Add secret binding, pick the header and a workspace secret; the test then sends the secret’s value instead of a literal.

  3. Review correlations. MaxoPerf suggests correlations: a value found in a response body that reappears in a later request, for example a token or an id. Accept the ones you want, one by one. An accepted suggestion extracts the value from the response by JSON path and uses it in the later request. Regular-expression extraction is not offered in this version. Cookies set by the server are carried between requests by the test engine’s own cookie handling, and header extraction is not offered.

  4. Read the preview. It shows the request count and the warnings. The test is limited to 50 requests; if more match, the preview says so and you should narrow the filters.

  5. Create the test. Name it, choose a project, a kind (Performance or Functional API), and for a performance test the load and where to run it. Choose Create, then open the created test and run it.

Warnings are informational. They never block Create, but read them:

  • A masked header was dropped from some requests (bind a secret to keep it).
  • A body contained masked values and was kept with the masked text.
  • A recorded value contains a literal ${…}. The test engine reads ${…} as a variable and cannot escape it, so these requests are skipped rather than converted.
  • A binary body was skipped.

Converted tests appear in your workspace’s Tests list like any other test. Starting a run follows the usual flow; see Create a test for the builder.

The Virtual service mock tab uses the same filters, then saves the recorded responses to your Virtual Service library as a mock service with one transaction per captured request. Name it and choose Save. Nothing is deployed by the conversion. To use it, open Virtual services → Services, create a virtual service from the library entry, and deploy it on a datacenter you choose. See Virtual services.

ResultWhere to find it
HTTP testTests in the project you chose
Mock serviceVirtual services → Services (your library)
HAR fileYour browser’s downloads

Recordings and converted artefacts are independent: deleting a recording does not affect tests or virtual services already created from it.