# How to automate testing network requests of current project build?

**URL:** <https://community.postman.com/t/how-to-automate-testing-network-requests-of-current-project-build/7655>\
**Category:** Help Hub\
**Tags:** newman-project, tests\
**Created:** [September 6, 2019, 6:48pm UTC](https://community.postman.com/t/how-to-automate-testing-network-requests-of-current-project-build/7655 "2019-09-06T18:48:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![veely1](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@veely1](https://community.postman.com/u/veely1)\
**Post date:** [September 6, 2019, 6:48pm UTC](https://community.postman.com/t/how-to-automate-testing-network-requests-of-current-project-build/7655/1 "2019-09-06T18:48:22Z")

</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).

Hi all,

From what I understand, using Newman through Jenkins is for testing API calls on servers that are always running.

What I’m trying to achieve is to run automated Postman tests through Jenkins that check my own project’s back-end server responses. Normally I would manually run my server through IntelliJ and then run the Postman collections myself. Is there a way to tell Jenkins to automatically run the server locally and then send some GET requests to it through Newman?

We already use Selenium which runs the server before automating some UI tests, but the problem is Selenium can’t read network requests/responses.

---

<div class="post-metadata">

**Author:** ![aamir.ahmed](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@aamir.ahmed](https://community.postman.com/u/aamir.ahmed)\
**Post date:** [September 10, 2019, 6:34am UTC](https://community.postman.com/t/how-to-automate-testing-network-requests-of-current-project-build/7655/2 "2019-09-10T06:34:27Z")

</div>

Hi @veely1,

Welcome to the Postman community! There are some options available in the configure section for a Jenkins project which may assist you in achieving your use case. After creating a Jenkins project, if you click on Configure, you have an option to execute shell commands in the ‘Build’ section where you can add the requisite commands to run the server locally as well as run collections using Newman as shown here: [https://learning.getpostman.com/docs/postman/collection\_runs/integration\_with\_jenkins/](https://learning.getpostman.com/docs/postman/collection_runs/integration_with_jenkins/)

If you have a Makefile stored in the Github repository, you can add the specific Github repository to the Source Code Management section and type in ‘make’ in the Execute Shell space to run the commands in the Makefile which is stored in the Github repository.

The following thread maybe helpful to you as well: [Is it possible to execute an external program from Postman?](https://community.postman.com/t/is-it-possible-to-execute-an-external-program-from-postman/5693)
