# Help needed , How do i run all collections in one Folder

**URL:** <https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356>\
**Category:** Help Hub\
**Created:** [May 9, 2019, 11:30am UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356 "2019-05-09T11:30:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ola100](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@ola100](https://community.postman.com/u/ola100)\
**Post date:** [May 9, 2019, 11:30am UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/1 "2019-05-09T11:30:41Z")

</div>

I have four different collections testing different parts of the app in a single folder, anytime I tried to run it in native app collection runner, it only runs the very first collection in the folder and never runs the rest collections.

Would this be the case if implemented in CI/CD pipeline …

Thanks in advance for any help

---

<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:** [May 9, 2019, 12:19pm UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/2 "2019-05-09T12:19:40Z")

</div>

Hey @ola100,

I’m not sure that I completely follow, would you be able to provide an example of what you’re seeing please?

Currently, The collection runner in the app will only run one collection at a time. If you’re using Newman in a CI pipeline you could create a script to run multiple collections.

If that’s what you’re trying to do?

---

<div class="post-metadata">

**Author:** ![ola100](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@ola100](https://community.postman.com/u/ola100)\
**Post date:** [May 9, 2019, 12:27pm UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/3 "2019-05-09T12:27:46Z")

</div>

@danny-dainton, thanks for your response , much appreciated

Yes I am trying to run multiple collections in a CI and could you please give me snippet of script to run multiple collections please.

I created collections to test different parts of the app and put all these different collections into one folder to serve has a smoke test for the app , and now wanting to put it in the jenkins CI pipeline

---

<div class="post-metadata">

**Author:** ![ola100](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@ola100](https://community.postman.com/u/ola100)\
**Post date:** [May 13, 2019, 9:59am UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/4 "2019-05-13T09:59:03Z")

</div>

@danny-dainton

Any idea on how to go about it please

---

<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:** [May 13, 2019, 10:15am UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/5 "2019-05-13T10:15:08Z")

</div>

You could try something simple like this suggestion from @tmccann?

> [@How can I run simultaneous request parallely](https://community.postman.com/t/how-can-i-run-simultaneous-request-parallely/3797/2):
>
> @Lohcaiz It sounds like your best bet for this would be to utilize the Newman runner, if you havent yet. If your collections can run in parallel with no need to interact with each other then this would be the ideal way to make this happen. I have done something similar in the past to help simulate a lot of traffic. To do this I simply created a bash script and added the command I would to execute the newman runs in as many times as needed. It looked something like this … #!/bin/bash newman r…

This _could_ allow you to run multiple collection files with Newman.

---

<div class="post-metadata">

**Author:** ![ola100](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@ola100](https://community.postman.com/u/ola100)\
**Post date:** [May 13, 2019, 10:28am UTC](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/6 "2019-05-13T10:28:49Z")

</div>

@danny-dainton ,  
thanks for your response , much appreciated ,

If you’d indulge me a bit more , am getting this issue when trying to run in newman in Jenkins pipeline but running fine when i run it locally on my system , below is the result on Jenkins :

`Building in workspace /Users/Shared/Jenkins/Home/workspace/test  
[test] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/jenkins3601671574609901062.sh

- node --version  
v11.14.0
- npm --version  
6.7.0
- newman --version  
/Users/Shared/Jenkins/tmp/jenkins3601671574609901062.sh: line 4: newman: command not found  
Build step ‘Execute shell’ marked build as failure  
Finished: FAILURE`

I am using macOS Mojave and newman is installed in my

`which newman /usr/local/bin/newman`

When I do npm install -g newman again , below is the response …

`/usr/local/bin/newman -\> /usr/local/lib/node\_modules/newman/bin/newman.js

- newman@4.4.1

updated 2 packages in 2.384s`

please what am i doing wrong …
