Newman can run my collections and output the result in various report formats. I have read postman cli documentation and nowhere reporters are mentioned. It seems postman cli only sends result to Postman app. I would like to know if different reporters are possible with postman cli
I use newman to run tests, since it hasn’t been updated for many months it seems postman cli is the future. I was comparing newman and postman cli and I couldn’t find reporters for postman cli
There is no command line option for postman to output result in a format of my choosing.
w4dd325
(w4dd325)
December 20, 2022, 9:58am
2
Hi @aakash.gupta
This is being looked into;
opened 12:12PM - 26 Sep 22 UTC
feature
product/runtime
postman-cli
### Is there an existing request for this feature?
- [X] I have searched the ex… isting issues for this feature request and I know that duplicates will be closed
### Is your feature request related to a problem?
Newman allows the use of custom reporters for example [htmlextra](https://www.npmjs.com/package/newman-reporter-htmlextra) .
My understanding is that the new CLI in Postman v10 does not allow the use of these reporters.
### Describe the solution you'd like
The ability to use custom reporters, like htmlextra with the new v10 CLI.
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
kiransweng
(Kiran Edupuganti)
February 19, 2023, 6:28pm
3
Team,
Any update on this , we are also looking for Html Report generation with Postman CLI
Specifying custom reporters would be great but as a temporary work around, does anyone know how to export the resulting data of a postman-cli
run?
Right now the closest thing I can get is piping the output of postman-cli into another command but it’s messy. Any hints or suggestions?
Hi all
Thank you for all the feedback! I’m happy to share that the Postman CLI now supports built in reporters!
You can export run results as json, html, JUnit or on the CLI. Simply run:
postman collection run <collection-id> -r <reporter>
For example, printing on the CLI and exporting run results as HTML, i will run the following:
postman collection run <collection-id> -r cli,html
Read more about this feature here
We’re eager to see how you use this feature. Please try it out and share any feedback you have with us! We’ll love to hear from you!