# \[junit2ado\] Automate API Testing with Azure DevOps Test Suite

**URL:** <https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187>\
**Category:** Help Hub\
**Tags:** newman-project, tests, azure-devops\
**Created:** [February 10, 2025, 12:07pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187 "2025-02-10T12:07:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![smedas](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@smedas](https://community.postman.com/u/smedas)\
**Post date:** [February 10, 2025, 12:07pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/1 "2025-02-10T12:07:39Z")

</div>

I have been looking for a Postman/Newman based solution to automate the API testing process and report the results to Azure DevOps Test Plans/TestSuites for a long time. Since I couldn’t find anything specific online I built it myself and made it available to the open-source community.  
Link to Linkedin article: [Automated Testing with Postman and Azure DevOps: JUnit2ADO](https://www.linkedin.com/pulse/junit2ado-simone-medas-9emac/?trackingId=n670TBTJMwWm%2B9L0c1aJOg%3D%3D)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 10, 2025, 12:11pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/2 "2025-02-10T12:11:02Z")

</div>

Hey @smedas 👋

Welcome to the Postman Community! :postman:

This looks a cool project - Have you experimented using the Postman CLI with the junit reporter?

> **[Generate collection run reports using the Postman CLI | Postman Docs](https://learning.postman.com/docs/postman-cli/postman-cli-reporters/)**
>
> Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.

You can run that directly using the Collection ID which will show the latest version of the Collection, rather than exporting a snapshot of the Collection each time.

---

<div class="post-metadata">

**Author:** ![smedas](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@smedas](https://community.postman.com/u/smedas)\
**Post date:** [February 10, 2025, 12:58pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/3 "2025-02-10T12:58:33Z")

</div>

> [@danny-dainton](#):
>
> This looks a cool project - Have you experimented using the Postman CLI with the junit reporter?

Hey @danny-dainton !  
Thanks for you reply!  
I haven’t tried with PostmanCLI, but I have used newman with the JUnit reporter (which should be the equivalent), and that’s exactly where I started.  
That is: the powershell script I wrote takes the XML file (JUnit) as input and maps the tests/asserts to the Azure DevOps ones.  
Essentially what the script I wrote does is to connect the results written in JUnit to the Test Cases in the ADO Test Suites.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 10, 2025, 1:13pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/4 "2025-02-10T13:13:27Z")

</div>

It’s the older equivalent - It would be great to see an updated flow using the Postman CLI and the JUnit reporter, you should be able to do the same with that output.

As I mentioned, the added bonus being that you wouldn’t need to manually export a Collection file from the UI each time.

---

<div class="post-metadata">

**Author:** ![smedas](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@smedas](https://community.postman.com/u/smedas)\
**Post date:** [February 10, 2025, 1:34pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/5 "2025-02-10T13:34:22Z")

</div>

Oh yes, now I understand your suggestion.  
Yes, you are right, avoiding exporting the collection every time it is modified is a great advantage.  
I had originally excluded the postmanCLI and chosen to use newman because of the monthly call limit ([About resource usage | Postman Docs](https://learning.postman.com/docs/billing/resource-usage/#postman-api-usage)) that is possible in the Free license.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 10, 2025, 1:44pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/6 "2025-02-10T13:44:20Z")

</div>

You’d get 1000 calls a month on the free plan but you can of course still use it in the same way that are with Newman and the static Collection file as a fall back option.

I would just be interesting to see if it’s possible to do a swap out of Newman for the Postman CLI in your tool to open it us to more use cases.

---

<div class="post-metadata">

**Author:** ![smedas](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@smedas](https://community.postman.com/u/smedas)\
**Post date:** [February 10, 2025, 2:17pm UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/7 "2025-02-10T14:17:58Z")

</div>

that’s a great suggestion… I’ll add this change asap.  
Thanks!

---

<div class="post-metadata">

**Author:** ![cruxto](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cruxto](https://community.postman.com/u/cruxto)\
**Post date:** [February 11, 2025, 8:47am UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/8 "2025-02-11T08:47:01Z")

</div>

As @danny-dainton mentioned.

I find using Postman a much better workflow than having to export your collection each time you make a change.

Also when I need to debug a test, I find postman CLI much better as you can enable verbose mode (`--verbose`) to see all request and response bodies easily in the console.

---

<div class="post-metadata">

**Author:** ![smedas](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@smedas](https://community.postman.com/u/smedas)\
**Post date:** [February 11, 2025, 9:41am UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/9 "2025-02-11T09:41:01Z")

</div>

Good to know! Thanks @cruxto

---

<div class="post-metadata">

**Author:** ![smedas](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@smedas](https://community.postman.com/u/smedas)\
**Post date:** [February 25, 2025, 9:07am UTC](https://community.postman.com/t/junit2ado-automate-api-testing-with-azure-devops-test-suite/75187/10 "2025-02-25T09:07:36Z")

</div>

Hi @danny-dainton I just edited the article to include Postman CLI in the automation. Thanks for the suggestion!  
Let me know if you have any other suggestions!

> **[JUnit2ADO](https://www.linkedin.com/pulse/junit2ado-simone-medas-9emac/)**
>
> Connect Postman API tests to Azure DevOps Test Plans with JUnit2ADO. This PowerShell tool simplifies QA workflows and boosts traceability in CI/CD.
