Run Collection fails from newman but succeed from postman

command: newman run ./src/test/resources/ABCTest-v1.postman_collection.json --global-var jwttoken="*****************" it fails to return status 200 while i run the same script in postman where variable jwttoken has same value as command line it run successfully. What can be issue here.

Try putting the option value between quotes.

–global-var “jwttoken=*****************”

1 Like