# Newman --Folder parameter, child folders not being correctly accessed

**URL:** <https://community.postman.com/t/newman-folder-parameter-child-folders-not-being-correctly-accessed/9341>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [November 29, 2019, 2:02pm UTC](https://community.postman.com/t/newman-folder-parameter-child-folders-not-being-correctly-accessed/9341 "2019-11-29T14:02:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonbuk](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@simonbuk](https://community.postman.com/u/simonbuk)\
**Post date:** [November 29, 2019, 2:02pm UTC](https://community.postman.com/t/newman-folder-parameter-child-folders-not-being-correctly-accessed/9341/1 "2019-11-29T14:02:08Z")

</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

I’m using newman (v4.5.6) to test a the MemberApp/Backend/UAT collection (authored in Postman 7.12) that has a collection setup as follows:  
collection : MyAPI, with the following child folders

- Backend
- 

```
  SIT

```

- 

```
  UAT

```

- Public
- 

```
  SIT

```

- 

```
  UAT

```

My command looks like  
newman run “[https://api.getpostman.com/collections/{MyAPIUID}?apikey={apikey}](https://api.getpostman.com/collections/%7BMyAPIUID%7D?apikey=%7Bapikey%7D)” --environment “[https://api.getpostman.com/environments/{EnvironmentUID}?apikey={apikey}](https://api.getpostman.com/environments/%7BEnvironmentUID%7D?apikey=%7Bapikey%7D)” --folder “Backend” --folder “UAT”

when I run command, I get requests processed from SIT as well as UAT folder.

Any ideas?

Thanks

Simon

---

<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 29, 2019, 3:19pm UTC](https://community.postman.com/t/newman-folder-parameter-child-folders-not-being-correctly-accessed/9341/2 "2019-11-29T15:19:02Z")

</div>

Hey @simonbuk,

Welcome to the community! 🚀

You should be able to just use `--folder UAT` to target that directly but I can see that only ever running the `UAT` folder in the `Backend` parent folder, due to the way that it matches folders with the same name. I believe it currently only runs the first one it _sees_ with the same name.

I might be wrong though. 🙂

---

<div class="post-metadata">

**Author:** ![simonbuk](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@simonbuk](https://community.postman.com/u/simonbuk)\
**Post date:** [November 29, 2019, 3:50pm UTC](https://community.postman.com/t/newman-folder-parameter-child-folders-not-being-correctly-accessed/9341/3 "2019-11-29T15:50:49Z")

</div>

Hi Danny

according to the documentation [https://www.npmjs.com/package/newman](https://www.npmjs.com/package/newman)  
`--folder <name>`  
Run requests within a particular folder/folders in a collection. Multiple folders can be specified by using `--folder` multiple times, like so: `--folder f1 --folder f2` .

So, in theory, I should be able to address a specific child folder through use of multiple --folder arguments

I’ll keep playing and see what I can come up with…

S

---

<div class="post-metadata">

**Author:** ![simonbuk](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@simonbuk](https://community.postman.com/u/simonbuk)\
**Post date:** [November 29, 2019, 4:26pm UTC](https://community.postman.com/t/newman-folder-parameter-child-folders-not-being-correctly-accessed/9341/4 "2019-11-29T16:26:26Z")

</div>

unless it means, as I suspect, having re-read it, you can specify \>1 folder to run a series of requests. Solution would appear to be unique names for all folders - but it would be great if there was a  
–folder Backend/WSO2 (or similar) fix so you could nominate a specific folder without having to ensure it has a unique name

S
