question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run Multiple Collections within folder

See original GitHub issue

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

  1. Newman Version (can be found via newman -v): 3.3.1
  2. OS details (type, version, and architecture): Windows 7-x64
  3. Are you using Newman as a library, or via the CLI? CLI
  4. Did you encounter this recently, or has this bug always been there: No bug, potential feature request
  5. 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.
  6. Command / script used to run Newman: newman run C:\PostmanCollections\requests\ -e C:\PostmanCollections\environment\postman_environment.json
  7. Sample collection, and auxilliary files (minus the sensitive details): N/A
  8. Screenshots (if applicable): N/A

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:10
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Ne4istbcommented, Feb 20, 2018

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.

1reaction
caddaccommented, Mar 28, 2018

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found