Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view responses in Postman Collection Runner?

I am using the Postman Collection Runner to run the same request multiple times using iterations. My tests work as expected, but I'm not able to see the individual responses for each request.

Is it possible to view the responses for requests in the Postman Collection Runner?

like image 300
thedev Avatar asked Sep 07 '16 13:09

thedev


People also ask

How do you save the response body in Postman from collection runner?

A. Open the collection runner, Select the required collection and request, select the “save responses” checkbox and run it. click on individual request, select the response body and manually copy the response and paste it to locally which is not feasibly because we can't do manually one by one for 100 requests.

How do you view request and response side by side in Postman?

Use tabs in your browser to navigate Postman instead of in-app tabs. For more information, see Browser tabs in the Postman web app. Two-pane view - By default, Postman displays responses below requests. Turn this on to display the response and request panes side by side.


3 Answers

In the latest version of Postman you can see all the data from the collection run for each individual request.

In the Collection Runner, Click on the request name and all the details of the request and response can be viewed.

enter image description here

More information can be going on the Debugging using the Request & Response body section of this page

like image 189
Danny Dainton Avatar answered Oct 09 '22 23:10

Danny Dainton


This might help somebody, I tried

pm.test(responseBody, true)

and this printed the response in run summary.

like image 30
Vicky Avatar answered Oct 09 '22 23:10

Vicky


Let me add more details about the shadowcharly solution.

Your results may be viewed if you assign responseBody variable to tests array (in Tests tab)

tests["body"] = responseBody

enter image description here

and export it as json (on the interface you only see the zero/one results if test passed or not).

enter image description here

enter image description here

enter image description here

It's not very useful but this is the only way I've found.

like image 5
Piotr Dawidiuk Avatar answered Oct 09 '22 22:10

Piotr Dawidiuk