postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.88k stars 1.16k forks source link

Add a filter in html report #1395

Closed Schveitzer closed 6 years ago

Schveitzer commented 6 years ago

Version and environment information:

  1. Newman Version (can be found via newman -v): 3.6.1
  2. OS details (type, version, and architecture): Ubuntu 16.04
  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: No
  5. Expected behaviour: Have the ability to filter the items in the html report by failure or success.
  6. Command / script used to run Newman: newman run postman_collection.json --environment postman_environment.json -r html
  7. Sample collection, and auxiliary files (minus the sensitive details):
  8. Screenshots (if applicable):

I would like to request the addition of a simple filter in the html report that makes it possible to filter the items by failure or by success.

kunagpal commented 6 years ago

@Schveitzer While this is currently beyond the scope of the current HTML reporter, this can be accomplished via the custom HTML report templates (https://github.com/postmanlabs/newman#html-reporter-options), or custom Newman reporters (https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman#custom-reporters)

Schveitzer commented 6 years ago

Many thanks for the feedback. :D

MarcosEllys commented 6 years ago

Hello, I also filter this, so I create my custom template with this filter and other things newman-html-report-template-verbose

Schveitzer commented 6 years ago

@MarcosEllys Thank you! :D