Skip to main content

Import Postman, HAR and WireMock Traffic

proxymock can turn traffic you already have into a recording you can replay and mock. The conversion runs on your machine and never contacts Speedscale cloud.

FormatWhat it becomes
Postman collection (v2.x, JSON)Every request becomes a test to replay. A request with a saved example response also becomes a mock. Collection variables that have a value in the file are filled in.
HAR fileRequests become tests and the calls they made become mocks. With Mocks only, every entry becomes a mock, which suits a browser's DevTools HAR behind Playwright journeys.
WireMock projectEvery stub mapping becomes a mock. WireMock mappings carry no host, so you choose the host and port the mocks answer for.

From the command line​

proxymock import postman ./orders.postman_collection.json --service-name orders
proxymock import har ./checkout.har --mocks-only
proxymock import wiremock ./wiremock-project --target-host payments --target-port 8080

Each command writes Markdown RRPair files to proxymock/imported-<file name>. Pass --out to choose another directory. --service-name sets the service recorded on every RRPair, and defaults to localhost. A WireMock project can be a directory or a zip of one.

In proxymock web​

  1. Click Get traffic.
  2. Under Source, choose Postman collection file, HAR file or WireMock mappings (.zip).
  3. Choose the file, and optionally a recording name and a service.
  4. For a HAR file, tick Mocks only to keep every call as a mock. For WireMock, set the host and port the mocks answer for.
  5. Click Import.

proxymock web runs the same converters as proxymock import and opens the new recording on the Requests page. It is saved as proxymock/imported-<name>, named from the file unless you give a name; a name already used gets a timestamp, so an import never writes into an earlier recording. A WireMock project is uploaded as a zip of the project directory, with its mappings/ and __files/ folders.

A file uploaded in proxymock web can be up to 64 MB.

Loading search...