Test your API using the Collection Runner
Send some or all of the API requests in a Postman Collection using the Collection Runner, in the order you choose. The Collection Runner logs the test results for each request, and it can use scripts to pass data between requests and change the request workflow.
Use collection runs to automate your functional GraphQL, gRPC, and HTTP API testing. You can also run MCP requests with their scripts and tests in the same run. You can run collections manually, or schedule collection runs in the Postman Cloud with the Collection Runner or monitors. You can also integrate collection runs with your CI/CD pipeline using the Postman CLI, Postman’s command line tool.
GraphQL and gRPC collection runs are available on Postman paid plans. For more information, see the pricing page.
To run a collection manually and work with the results, see the following topics:
- Configure and start a collection run — Choose the requests to run, their order, iteration data, and run settings, then start the run.
- Debug collection run results — Review test results, errors, mock events, and console logs, share results with your team, and delete runs.
- Run a collection again — Rerun a collection with the same settings or a new configuration, or schedule it or run it with the Postman CLI.
- Troubleshoot large collection runs — Free up memory and improve performance for runs with many requests, large responses, or many iterations.
- Export collection run results — Export run results from the Postman desktop app, and import exported results into the Collection Runner.
- View collection run history — View past functional, scheduled, and performance runs from a collection’s Runs tab.
Automate collection runs
In addition to running collections manually, you can schedule collections to run automatically at specified times in the Postman Cloud. You can also use collection runs with other Postman utilities to build automation into your API projects:
- Use the Postman CLI command-line interface to run collections or trigger a monitor run as part of your development pipeline, responding to test outcomes to support your API performance.
- Use the Configure CI/CD tab in the Collection Runner to generate a Postman CLI configuration for your CI/CD pipeline. Select a collection, environment, and CI/CD provider to get a build configuration you can add to your pipeline script. Learn more about running a collection in CI/CD.
- Adding a monitor to your collection lets you schedule collection runs and stay informed of any issues.
- You can also set up a collection webhook to trigger a collection run at a specific time with your own custom payload.
Next steps
Build on the Collection Runner fundamentals you’ve learned with the following topics:
-
Use scripts to build workflows with conditional sequences for running the requests in your collections. To learn more, go to Customize request order in a collection run.
-
Run your collections on a schedule to automatically test the functionality of your APIs. To learn more, go to Automate collection runs on a schedule.
-
Use the Collection Runner to test the performance of your API with the same requests, collections, and environments you use for functional API tests. To learn more, go to Simulate user traffic to test your API performance.