Run Multiple Collections within folder
See original GitHub issueCurrently I have a number of Postman collections which we wish to use as a set of smoke tests. I anticipated I would be able to point at a directory containing postman collections and for all of these to be executed one by one. However, this is not possible. My expectation was incorrect and I have worked around the issue by having multiple newman run commands, though this seems like waste/duplication.
- Newman Version (can be found via
newman -v
): 3.3.1 - OS details (type, version, and architecture): Windows 7-x64
- Are you using Newman as a library, or via the CLI? CLI
- Did you encounter this recently, or has this bug always been there: No bug, potential feature request
- Expected behaviour: Expected to point newman at a folder containing a number of collections and for it to iterate over them. Clearly this expectation was incorrect but could be helpful? At the moment I’m just repeating the same newman run command but pointing to a different collection within the same folder each time.
- Command / script used to run Newman: newman run C:\PostmanCollections\requests\ -e C:\PostmanCollections\environment\postman_environment.json
- Sample collection, and auxilliary files (minus the sensitive details): N/A
- Screenshots (if applicable): N/A
Issue Analytics
- State:
- Created 7 years ago
- Reactions:10
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Help needed , How do i run all collections in one Folder
I have four different collections testing different parts of the app in a single folder, anytime I tried to run it in native...
Read more >Newman-Run - GitHub Pages
Newman-Run. A package to run multiple postman collections in single run by leveraging newman library. This will help us to merge and view...
Read more >Newman run 1 folder and rest of the collection - Stack Overflow
This command runs only the folder in the collection but not the requests on the collection level. Is there a way to run...
Read more >Postman Collections: How To Use and Group Requests in ...
How to group requests and save collections in Postman? ... Just make a folder inside your system and paste or export many collections...
Read more >Run Multiple Collections within folder - Newman - Bountysource
Run Multiple Collections within folder ... Currently I have a number of Postman collections which we wish to use as a set of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I solved this issue in a bit another way: have written a tool for combining several collections into one. https://www.npmjs.com/package/postman-combine-collections
We successfully use it in CI run.
I solved this by having a Command Line build step in TeamCity and running:
for collection in ./tests/*; do newman run "$collection" --environment ./envs/dev.postman_environment.json' -r cli,teamcity; done