Request and response header in newman CSV report

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.


I’m new to Postman and Newman tools. I need some help in generating Newman reports.

I’m trying to automate a project in which I’m trying to integrate Newman with java in order to call postman collections and get reports generated from Newman. I need the following details :-
3.response, response body,
4.header details
5.time taken to execute.

I want to generate the reports in the form of CSV, as it will be easier for me to parse the data in my java code. But I’m not getting header details in the generated CSV report .

Is there any way I can get the header details in CSV report?
Also is there any other way I can run the postman collections from my java code and get the results?