Outputting responses from api requests in a test

In addition to what @gunjandb suggested, you can use newman to export the response to a file as suggested here.

Here are more details on the newman reporter: GitHub - postmanlabs/newman: Newman is a command-line collection runner for Postman

2 Likes