How to retrieve the results of a Postman execution?

Hello,
We execute Postman tests by using Postman CLI (from Azure DevOps pipeline) : execution is working fine; we are able to see the results in Postman;
now we would like to be able to retrieve the run results corresponding to the tests just executed but we could not find the way to export by code the run results (no API found or Postman CLI command found);
we expected to be able to retrieve run results in format like JUNIT/XML for example (same as Newman does);
thanks for help.

Hey @supply-geoscientis19 :wave:

Welcome to the Postman Community! :postman:

The Postman CLI currently doesn’t the capability to use external reports in the way that Newman does.

The results will be either in the Terminal or if connected through the login process, in the Collection Run History within the UI.

There is an open feature request for this on out Github Issue Tracker.

hi @danny-dainton : thank for the quick (but disappointing :grimacing:) answer; i will follow this ticket on github;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Hi @supply-geoscientis19 :wave:

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

Jan-31-2025 5-50-36 PM

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!