Start a simulation in Postman Simulator
Using the Collection Runner or the Postman CLI, you can start all mocks in the simulation at once, or start them individually after you’ve applied scenarios. You need to start the mock before you can send requests to it.
To start a simulation from Postman Simulator, do the following:
-
Open a workspace and select Tools >
Simulations in the footer.
-
Select the simulation you’d like to start.
-
(Optional) Update the mocks and scenarios in the simulation. You can also turn off the toggle next to a mock to exclude it from the simulation.
-
Click Start to start the simulation.
-
Send requests to the mock URLs and observe the responses with the simulated conditions applied. For each mock, note the slug and include it in the request URL or header depending on how you set up the simulation.
For example, if the simulation URL is
https://my-simulation.sim.my-team.postman.devand you have a mock with the slugnew-mock-049rk, you can send a request tohttps://my-simulation.sim.my-team.postman.dev/new-mock-049rk/itemsor include the headerx-mock-slug: new-mock-049rkwith the request. -
View simulation logs to analyze how the simulated conditions are affecting your API’s behavior.
To start a simulation with the Postman CLI:
- Use the
postman simulation runcommand to start a simulation. See Simulation commands for details. - Use the
--simulateoption with thepostman collection runcommand to run a collection with a simulation. See Collection commands for details.
To change a simulation, see View, edit, or update a simulation.