# Running postman collections and getting report

**URL:** <https://community.postman.com/t/running-postman-collections-and-getting-report/33532>\
**Category:** Help Hub\
**Tags:** newman-project, collections\
**Created:** [March 16, 2022, 9:49am UTC](https://community.postman.com/t/running-postman-collections-and-getting-report/33532 "2022-03-16T09:49:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubhDcoder](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@shubhDcoder](https://community.postman.com/u/shubhDcoder)\
**Post date:** [March 16, 2022, 9:49am UTC](https://community.postman.com/t/running-postman-collections-and-getting-report/33532/1 "2022-03-16T09:49:27Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hello Team,

I have a use case, I hope i can find some help here.

We are using karate framework for API testing. As this is built on top of Cucumber, it requires creating feature files. Everything was working well.

Now, we have a requirement where we need to run the postman collections as it is. Karate supports generating the feature files on the basis of collection provided, but it skips the tests and pre-request scripts.

We are thinking to revise our approach here,  
Requirements are.

1. need to run postman collection.
2. all the tests and pre-requests script should run and if any assertion fails, it should report it back.
3. the reporting should be more detail oriented.

I have come across newman and seems like a good fit, but can we generate cucumber/testng/junit type of reports with it ?

Can we use java based solution for this ? Installing the newman package and running it in using Runtime library, is this a good practice to have in project ?

As we are taking the requirement (1) as the topmost priority and this is directly connected to the postman, what alternates can we suggest for this ?

---

<div class="post-metadata">

**Author:** ![pooja-mistry](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pooja-mistry/32/11451_2.png) [@pooja-mistry](https://community.postman.com/u/pooja-mistry)\
**Post date:** [April 11, 2022, 10:14pm UTC](https://community.postman.com/t/running-postman-collections-and-getting-report/33532/2 "2022-04-11T22:14:31Z")

</div>

Hello,  
Your use case is interesting and with that said, I wanted to share some thoughts on Newman.

Newman actually allows you to generate custom reports :

> **[Running collections on the command line with Newman | Postman Learning Center](https://learning.postman.com/docs/running-collections/using-newman-cli/command-line-integration-with-newman/#custom-reporters)**
>
> Running collections on the command line with Newman: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.

This is an example with an HTML reporter :

> **[newman](https://www.npmjs.com/package/newman#html-reporter)**
>
> Command-line companion utility for Postman. Latest version: 5.3.2, last published: a month ago. Start using newman in your project by running \`npm i newman\`. There are 143 other projects in the npm registry using newman.

This blog and github repo shows an interesting example using HTML reporter :

> **[Generate automated test reports using Postman](https://medium.com/younited-tech-blog/generate-automated-test-reports-using-postman-b9c8cd53b955)**
>
> Postman is a tool for API development. Postman’s features simplify each step of building an API and testing it. It offers possibility to…

- Github : [GitHub - DannyDainton/newman-reporter-htmlextra: A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better custom templates.](https://github.com/DannyDainton/newman-reporter-htmlextra)

Here is an example for **Junit reporter** for newman

> **[newman-reporter-junitfull](https://www.npmjs.com/package/newman-reporter-junitfull)**
>
> A Newman JUnit Reporter providing full reports (without aggregation of results). Latest version: 1.1.1, last published: 3 years ago. Start using newman-reporter-junitfull in your project by running \`npm i newman-reporter-junitfull\`. There are no...

This is an article about cucumber & postman which you may find useful

> **[Start Automating API Tests with Postman](https://blog.ippon.tech/start-automating-api-tests-with-postman/)**
>
> What is Wrong with Cucumber? For a long time now many of us have been productively using Cucumber or one of its variations for Acceptance Test Driven Development (ATDD). The English-written tests are the gates to our applications that keep breaking...

I hope that you may find some of these resources interesting

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:55pm UTC](https://community.postman.com/t/running-postman-collections-and-getting-report/33532/3 "2024-12-12T12:55:15Z")

</div>

Closed on December 12, 2024, 12:55pm UTC

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