I'm beginner to REST API testing. I wrote some scripts for some scenarios using postman and tried to run with Newman. (In there URL defined as environment variable.) Showing errors for that URL when try to run with Newman.Why this is happened. How to resolve this issue.(Error is not showing when directly put the url to request)(snapshot attached here)
1 Answer
I found an answer for that
- Download both collection and env files
- Store in a folder
- Using cmd go to folder location( cd {folder path})
- Type command as below
newman run {collection name.json} -e {env path} {env name.json}