Collection runner
Runs every request in a collection or folder, in order, with their scripts and tests. No limits on runs.
Start a run
Section titled “Start a run”- ··· menu of a collection or folder → Run (or the Run button in its settings).
- Tick the requests to include (all by default).
- Configure:
- Environment.
- Iterations: how many times to repeat the whole collection.
- Delay: milliseconds to pause between requests.
- Data (CSV or JSON): each row is one iteration. See below.
- Stop on first failure.
- Save variables changed by scripts.
- Click Run.
Results appear live: status, time, size and tests for every request. Expand a row to see the tests, the response and the request sent. Filter by Passed or Failed, check the Console or Export JSON.
Data-driven testing
Section titled “Data-driven testing”A CSV like this:
user,password,expectedana,secret1,200luis,wrong,401runs one iteration per row. Use {{user}} in requests and, in tests:
pm.test('Expected status', () => { pm.response.to.have.status(Number(pm.iterationData.get('expected')))})For JSON, use an array of objects: [{"user":"ana"}, {"user":"luis"}].
Flow control
Section titled “Flow control”In a script, pm.execution.setNextRequest('Request name') jumps to that request, and pm.execution.setNextRequest(null) ends the run. Useful for retries or conditional flows.
History
Section titled “History”Every run (from the runner, monitors and the CLI) is kept in the Runs section.