newman icon indicating copy to clipboard operation
newman copied to clipboard

[JSON reporter] output request timing details for each request

Open yusong0926 opened this issue 4 years ago • 12 comments

not sure if there is a way to output request timing details (dns, firstBytes .....) for each request. I can only find timing details for the whole collection. For each request, only response time is available in the output file.

  1. Newman Version (can be found via newman -v): 5.2.0
  2. OS details (type, version, and architecture):
  3. Are you using Newman as a library, or via the CLI? cli
  4. Did you encounter this recently, or has this bug always been there:
  5. Expected behaviour:
  6. Command / script used to run Newman:
  7. Sample collection, and auxiliary files (minus the sensitive details):
  8. Screenshots (if applicable):

yusong0926 avatar Jan 26 '21 06:01 yusong0926

Using the --verbose flag should show the detailed timing information for the requests.

DannyDainton avatar Jan 27 '21 20:01 DannyDainton

Using the --verbose flag should show the detailed timing information for the requests.

I actually used verbose flag. it only shows responseTime in each request metrics. For dnsTime, firstBytes, I can only find aggregated values like average/min/max aggregated by all the requests in the collection.

yusong0926 avatar Jan 30 '21 09:01 yusong0926

"timings": {
  "responseAverage": 186,
  "responseMin": 186,
  "responseMax": 186,
  "responseSd": 0,
  "dnsAverage": 15.191342000000077,
  "dnsMin": 15.191342000000077,
  "dnsMax": 15.191342000000077,
  "dnsSd": 0,
  "firstByteAverage": 125.70972300000005,
  "firstByteMin": 125.70972300000005,
  "firstByteMax": 125.70972300000005,
  "firstByteSd": 0,
  "started": 1612000150169,
  "completed": 1612000150466
},

yusong0926 avatar Jan 30 '21 09:01 yusong0926

      "responseTime": 186,
      "responseSize": 42858

yusong0926 avatar Jan 30 '21 09:01 yusong0926

You mentioned that you're using the CLI in the original issue details, is this not the output from the library?

DannyDainton avatar Jan 30 '21 20:01 DannyDainton

You mentioned that you're using the CLI in the original issue details, is this not the output from the library?

the output was from json reporter.

yusong0926 avatar Feb 01 '21 04:02 yusong0926

@DannyDainton Hey! Can I work on this issue?

adityaofficial10 avatar Feb 04 '21 12:02 adityaofficial10

@yusong0926 Actually it gives all the details using a cli reporter with --verbose option. But the output is the same as you cited above using a json reporter. So @DannyDainton, Can I open a PR for adding the required details?

adityaofficial10 avatar Feb 06 '21 13:02 adityaofficial10

I'm not going to stop anyone actively wanting to do any work - You don't need permission from me 😂

DannyDainton avatar Feb 06 '21 13:02 DannyDainton

Ok thanks😅.

adityaofficial10 avatar Feb 06 '21 13:02 adityaofficial10

@DannyDainton @yusong0926 I've opened a pull request with a fix for this issue. The screenshot of the new report is attached herewith:

report

adityaofficial10 avatar Feb 07 '21 12:02 adityaofficial10

I've updated this configuration by adding iteration count and item name as shown below: Screenshot 2021-02-11 at 12 40 32 PM

adityaofficial10 avatar Feb 11 '21 07:02 adityaofficial10

Any news ? Im still waiting for a detailed report like this ? I still only got this: image

TheRealDashu avatar Oct 07 '22 16:10 TheRealDashu