Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get the "Response Body" in the test results of Postman collection [closed]

Tags:

rest

api

postman

I have Postman collection to run POST request 10 iterations, in each iteration I have different values for the variables in the request body, and I am doing that by using CSV.

After completing running the collection, I cannot see the "Response Body" for each iteration. it shows data for the test results and statistics, but not for the actual response body.

Is there any idea to how I can get the response body for each request/iteration in the collection, is that not available in Postman, is there any other tools can do that?

like image 771
user1558490 Avatar asked Feb 06 '23 15:02

user1558490


2 Answers

More simplistic way is:

tests[`Response Body: ${responseBody}`] = true;
like image 64
Sudharsan S Avatar answered May 04 '23 09:05

Sudharsan S


In the latest version (5.5.0) you can see the response data for each request by clicking on the request name in the Collection Runner. This will give you the details about the request made and the response received.

Request and Response data

like image 39
Danny Dainton Avatar answered May 04 '23 08:05

Danny Dainton