I’m having an authentication issue running Postman tests via Newman.
I’ve created a test suite with variables to populate each environment - long story short, all tests pass when I run them in the Postman app:
Yet, when I run the same collection from Newman (either exported to file or from URL) with the relevant env variables exported, the tests fail (ignore the middle one - it always passes, it’s just to confirm the env under test):
So I amended the tests to console.log the response body, and it returns this (from Newman only):
Yet, in the Postman app, no authentication is needed…
Any ideas?
Thanks,
Adam