Configure and start a collection run
You can manually run the requests in a collection or a folder.
-
Click
Items in the sidebar.
-
Click Collections, then select the collection or folder you want to run.
-
Click
Run.
You can also click Tools >
Runner in the Postman footer and drag a collection from the sidebar into the Collection Runner.
-
Under Run type, select Functional, then select Local.
-
If you want your collection to run with an environment, select it using the environment selector at the upper right of Postman.
-
Choose any configuration options:
-
Iteration data — Select one of the following options to provide iteration data for the collection run:
- Datafiles — Upload or select an existing data file for the collection run. You can select a data file that was previously uploaded, or you can select a local data file.
- Datasets — Create or select a dataset and view to use as iteration data in the collection run. Datasets define your data, and views control how that data is retrieved. To learn more, see Use a dataset with a collection run.
-
Iterations — The number of times to run the collection. You can also run collections multiple times with different data sets to build workflows.
-
Settings — Choose any of the following advanced settings:
-
Persist responses for a session — By default, response headers and bodies are persisted so you can review them after running the collection. Request and response bodies are persisted only if they’re less than 300 KB in size.
Your browser or computer may not have enough memory available to persist responses for large collection runs. It’s recommended that you use the Postman desktop app to store a larger amount of request and response data using your computer’s disk space. Learn how to troubleshoot a large collection run.
Request and response details are persisted locally during your current Postman session and aren’t saved permanently. Signing out of Postman, signing into another device with the same account, or refreshing your browser will end your session and remove the logged data.
Response and request details are available for the user who started the collection run. Other team members can’t view details for collection runs that you start.
-
Turn off logs during run — Turn off logging to the Postman Console during the collection run. Request and response details such as method, URL, headers, and body won’t be logged to the Postman Console. Also, all log statements in scripts will be ignored. Selecting this option may improve performance of the Postman app during large collection runs. You can still view request and response details from the run results.
-
Stop run if an error occurs — By default, the collection run stops if an exception is encountered within a script or if there’s a problem sending a request. Clear this checkbox if you want the collection run to continue after an error occurs.
-
Keep variable values — Persist the variables used in the run, so that any variables updated by the run will remain changed after it completes. If you don’t persist variables, changes aren’t saved after the run completes. Persisting variables in the collection run updates the local value and not the shared value of variables. Learn how to update variables in a collection run with scripts.
-
Run collection without using stored cookies — If your requests use cookies, you can optionally deactivate them for a collection run.
-
Save cookies after collection run — Save the cookies used in this session to the cookie manager. Any values changed by requests during the run will remain after it completes.
-
Add a delay of — An interval delay between requests, in milliseconds.
-
-
-
(Optional) To change the order in which the requests run, click
and drag a request to its new location in the order. You can remove an individual request from the run by clearing the checkbox next to its name. You can also press Shift and then click a range of checkboxes to add or remove them from the collection run.
You can change the order of requests during a collection run from your request scripts using the
pm.execution.setNextRequest()function. To learn more, see Customize request order in a collection run. -
(Optional) Click the Mock tab to redirect collection requests to a mock. For each base URL in the collection, use the Select mock dropdown list to choose a mock. To create a new mock, select Create with AI or Create new mock from the dropdown list. For more information, see Run a collection with a mock.
-
Click Start run.
To run the collection with Agent Mode, click
and then select a suggested task from the dropdown list. For example, select
Add tests based on the response for Agent Mode to run the collection and then suggest tests based on the run results.