Postman Blog | End-to-end testing best practices with Postman mock servers

Archived topic — some details may be out of date.
Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (postman mock generate) and run it (postman mock run). See About mocks and Create a mock.
Working with an AI coding agent? The Postman plugin can build and run mocks for you.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

This article from David Espi Hernandez, discusses the importance of E2E testing, challenges with external dependencies, and how Postman’s mock servers can be used to facilitate E2E testing by simulating API behavior.

It provides a detailed guide on setting up mock servers and structuring E2E test collections, using the Postman API for automation.

Feel free to explore the fantastic array of content on our blog! :postman:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.