I am trying out ‘newman’ on my collection and it seems that I am getting a 401 (Unauthorized) response back. So I have two questions. The first is isn’t 401 considered an error? The summary in the end shows no tests failed? The second question is regarding the pre-request scripts. When I run the API tests from the Postman app the pre-request script are run and I don’t get the 401 responses. So my question is how do I get newman to act more like the Postman app?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Newman implimentation with pre-request-script and tests | 1 | 2232 | April 12, 2022 | |
Postman collection running pass but newman running fail | 0 | 402 | May 10, 2023 | |
Collection runs fine in Postman but fails with errors in Newman | 7 | 1180 | August 2, 2023 | |
Pre-request script newman syntax error | 0 | 782 | September 27, 2022 | |
Newman CLI showing 401 with NTLM authorization | 4 | 3125 | January 24, 2023 |