Response in Postman should be saved to local

After getting a JSON response, can we store it to our local in any text format? by writing any type of script in Tests


If I’m not wrong, yes, you can.
Just run this command onto your newman console:

newman run yourCollection.json -e yourEnvironment.json --reporters cli,junit --reporter-junit-export "newmanReports/JUnitReport.xml"

Of course you previously need to export your collection and environment(s) to the same route you are executing your newman command.

Hope that helps.

Are you asking about through the Postman app or through newman?

You can manually save the response in the app, but I’m not sure of a way you can do it via the tests.