Run multiple collections sequentially sharing a common environment.
See original GitHub issueDear,
I was wondering if it is possible (did not find how) to run sequentially two or more collections, but sharing the same environment.
Something like
newman run authenticate_collection.json api_collection.json -e environment.json
I have a collection that basically login a user and retrieve an access_token. Then I have multiple collection for several APIs. I would not to have to copy/paste each time the authentication folder but share it instead. So the result (access_token) of the authenticate_collection.json would be into the environment, only for the run execution context.
I guess it require to be handle first by postman before newman? Is this something possible? Thanks a lot for your help!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Newman-Run - GitHub Pages
Run multiple postman collections along with predefined configs using a single feed file. Reduces command-line arguments since reporting (allure, JSON, CLI, ...
Read more >Required to run multiple collection through Newman - Help
Is there any command to execute multiple collections through single cmd. If you have please share it with me. I'm working on a...
Read more >Postman - Run Collections using Newman - Tutorialspoint
To run Collections using Newman, we have to first launch the Postman application and click on the three dots available beside the Collection...
Read more >Batch running multiple Newman (Postman) test collections
You just have to use "call" before newman command as follows: SET postman_collection=Regression.postman_collection.json SET ...
Read more >CUDA C++ Best Practices Guide
CUDA programming involves running code on two different platforms ... Another common approach to parallelization of sequential codes is to make use 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
@shubhamjadon
I tried the solution you have given to run multiple collections.
I observed that with the solution you have provided, the pre-request script does not work. I was trying to set variables (e.g token) in per request script at the collection level.
@lusoalex there is no feature like the one you asked currently in postman. But there is a workaround i discovered maybe that could help you. It is as follows:
(The above only works for newman nodejs module) (Also, if you want info on how to run collection using newman library then see docs)
(The above implementation will combine all the collections into a single collection and then run it. That’s the only way i can think of achieving desired functionality)
I hope this helps.