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

**URL:** <https://community.postman.com/t/how-to-specificy-folders-path-as-folder-has-the-same-name-when-using-the-runner/17764>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [November 17, 2020, 10:04am UTC](https://community.postman.com/t/how-to-specificy-folders-path-as-folder-has-the-same-name-when-using-the-runner/17764 "2020-11-17T10:04:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurelien.lair](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@aurelien.lair](https://community.postman.com/u/aurelien.lair)\
**Post date:** [November 17, 2020, 10:04am UTC](https://community.postman.com/t/how-to-specificy-folders-path-as-folder-has-the-same-name-when-using-the-runner/17764/1 "2020-11-17T10:04:04Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, 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](https://github.com/postmanlabs/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](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

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:

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

```

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

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

```

but it’s not working.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 17, 2020, 1:02pm UTC](https://community.postman.com/t/how-to-specificy-folders-path-as-folder-has-the-same-name-when-using-the-runner/17764/2 "2020-11-17T13:02:39Z")

</div>

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. 😢

> <https://github.com/postmanlabs/newman/issues/1851>
>
> Issue:
> I'm unable to specify a specific folder for execution with newman CLI, w…hen the leaf level folder name is repeated somewhere else in the folder heirarchy for a Postman Collection.
> Its quite possible that I'm making a silly mistake, but researching online didn't give me specific answers, maybe documentation needs to include an example if the ability exists.
> 
> 1. Newman Version 4.3.1
> 2. OS details 
> Linux nkcell460 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86\_64 x86\_64 x86\_64 GNU/Linux
> 3. Using as CLI
> 3. Just started using newman. Could not find the answer looking up blogs or online resources, particularly: 
> https://stackoverflow.com/questions/49769010/newman-run-subdirectory-of-a-collection 
> and 
> https://github.com/postmanlabs/newman/pull/1654
> 
> 4. Expected behaviour: --folder option should support the subfolder specification by fully qualified path under the Collection
> 5. Command / script used to run Newman:
> Tried:
> a. newman run \\\<collection\>.json --folder "sample/\_identifier" --environment \\\<env\>.json -n 1
> newman run \\\<collection\>.json --folder "final/\_identifier" --environment \\\<env\>.json -n 1
> (i.e. unique parent and the subfoder)
> Result : Nothing selected for run
> and
> b. newman run \\\<collection\>.json --folder "fully/qualified/path/final/\_identifier" --environment \\\<env\>.json -n 
> Result : Nothing selected for run
> c. newman run \\\<collection\>.json --folder "\_identifier" --environment \\\<env\>.json -n 
> Result : runs hd7 / final / \_identifier 
>  
> Steps to reproduce the problem:
> 
> 1. Create a collection with a folder structure. 
> 2. Ensure a folder name is repeated under a different heirarchy
> 3. Try to use different expressions for --folder option for newman cli to execute the folder '\_identifer' under sample
> 
> If I have a subfolder with the same name somewhere else in the folder structure, how do I select a specific one?
> \--folder "\\\<parentFolder1\>/theName"
> doesn't seem to work.
> newman version 4.3.1

---

<div class="post-metadata">

**Author:** ![aurelien.lair](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@aurelien.lair](https://community.postman.com/u/aurelien.lair)\
**Post date:** [November 17, 2020, 5:10pm UTC](https://community.postman.com/t/how-to-specificy-folders-path-as-folder-has-the-same-name-when-using-the-runner/17764/3 "2020-11-17T17:10:28Z")

</div>

Okay thanks anyway Danny 😉
