So basically I am moving my collections towards the newman CLI where as my collection contain .csv file and environment file.
When I run command with environment json file, NEWMAN CLI throwing error whereas without environment.json file, able to execute collection.
Step to reproduce:
- Export the collection.json and environment.json file.
- Get the .csv file data.
- Make sure node, npm, newman installed.
- run the newman command.
newman run “collection.json file” -e “environment.json file” -d “.csv file”
Example: newman run “D:\Medifast APIs\newman.postman_collection.json” -e “D:\Medifast APIs\Dev.postman_environment.json” -d “D:\Medifast APIs\coachRankProgression.csv” OR
newman run newman.postman_collection.json -e Dev.postman_environment.json -d coachRankProgression.csv
Actual Value: Above command throwing error as Invalid URI "http:///Coach"
whereas without environment file, Able to run the collection.