How to specificy folders path as folder has the same name when using the runner

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Hi,

as far as I know no one asked for this question so could you tell me if it’s possible to specify to the runner a specific folder path?
In my collection I have organized the folders this way:

    .
    ├── TC1
    │   └── ACTIVITY_CREATION
    └── TC2
        └── ACTIVITY_CREATION

and I do no want to run these folders on the same run. I’ve tried this

    newman.run({
        collection: require('./collection.json'),
        folder:  'TC1/ACTIVITY_CREATION',
        reporters: 'cli'
    })

but it’s not working.

Hey @aurelien.lair

That’s currently not supported in Newman - You would need to add a unique identifier to the folder name for Newman to pick this up. :cry:

Okay thanks anyway Danny :wink: