How to pass argument or value while running collection from newman ?
newman run mycollection.json -e envfile.json/csv is not working
I have a collection which can run on multiple environments seamlessly but i need to pass one argument/value in first API request body which while drive to run on multiple environment
Steps to reproduce the behavior:
- Go to newman
- Run collection
I need to know how can i run collection by passing one value in command line
In above collection i need to pass organization id in first API
API name getDomain API
Could you please let me know the solution for this ?
I tried many things like passing environment json/csv file but nothing worked because environment json/csv files have only variable key doesn’t have variable value