I am running my collection using newman.cmd, I was wondering how to get the full failure details immediately. E.g. when running and a test fails something like this is output to the command line:
1. Status code is HTTP OK
2â „ JSONError in test-script
Only once the run is over do I get the full details:
2. AssertionError Status code is HTTP OK
expected { Object (id, _details, ...) } to have property 'code'
at assertion:0 in test-script
inside "PostmanTest/MyRequest"
3. JSONError Unexpected token u in JSON at position 0
at test-script
inside "PostmanTest/MyRequest"
How can I have these details printed to the console immediately without having to wait til the run is over and then matching the numbers?
Newman’s cli reporter doesn’t show that information on each line, but you could run Newman in a script and print something similar to the console for each request:
Newman’s cli reporter doesn’t show that information on each line
Ok this is pretty much the information I was looking for. I have a few more questions:
Are there any plans to add this functionality to cli reporter?
My environment file, collection file and globals file are in random locations on my local disk. Is there a way for me to run newman in a script and pass all these in using absolute paths like I can when I use newman.cmd?