0
votes

I am using JMeter with non-GUI mode. I have one issue using its reporting. Currently, I am trying to generate the report but has the issue of request and response for the particular API.

I have used 2 HTML reports -

  1. Generated from CSV - this report only gives me the status codes of the API with its URL's PFB screenshot -

enter image description here

  1. Ant report generated from jtl/xml - this report only gives me the status codes for the API with its URL's PFB screenshot -

enter image description here

Is there any way by which I can get the all details around API like -

  1. request headers
  2. response headers
  3. request data
  4. response data
1

1 Answers

0
votes

I'm not aware of any existing approaches to get the information you need into HTML reports, the options are in:

  1. Amend JMeter source code and the report-template to include the information you're looking for, it's applicable for HTML Reporting Dashboard
  2. Amend Result File Configuration and XSLT template to include the information you're looking for, it's applicable for JMeter Ant Task
  3. This one is most probably the easiest, you can use Flexible File Writer plugin to write request and response headers and data into a separate file in an arbitrary format (it could also be HTML)