How to get the test execution result from new man

Hi Everyone,

How to get the test execution result after the newman command line run. Anyone has achieved this?

We wanted to revoke the build if the test fails.

Thanks
Team.

Hi @infotoudaya

If you want to display the results I would suggest the HTML Extra Reporter;

If you mean the exit code then (if you are in CMD) you could try using;

echo %errorlevel%

Here is an example with a Newman run that passes (exit code 0) and fails(exit code 1).

1 Like