How do I enable verbose output from Postman Newman? (to show the request body)

When running a collection test with Newman, I would like it to display the submitted request in order to get a more verbose record of the test (and make sure the environment variables were replaced correctly).

I checked the Newman command line options in the project documentation and didn't find anything, and the -O option described in this old release doesn't work.

I would like to know how to activate verbose output.

+3


source to share


1 answer


This is a popular feature request that has been filed on GitHub here

As a workaround, you can add this to your request after every request you want to write:



tests["[INFO] Request: " + JSON.stringify(request)] = true;
tests["[INFO] Response: " + responseBody] = true;

      

+5


source







All Articles