From the AI. Not sure it helps but here you go….
Automating API calls directly in Java:
Instead of relying on Newman, you can use Java libraries like Apache HttpClient, OkHttp, or Spring WebClient to build and send API requests directly within your Java code. This approach offers more granular control and is often preferred for unit and integration testing of API clients.
Using the Postman API with Java:
Postman provides an API that allows you to interact with your Postman data programmatically. You can use Java libraries to make requests to the Postman API to manage collections, environments, and even trigger runs (although for running collections, Newman is generally the more direct approach).
Integrating with CI/CD tools:
If you are using a CI/CD tool like Jenkins, you can configure it to execute Newman commands as part of your build pipeline. Jenkins, being a Java-based application, can easily integrate with shell scripts that run Newman.
In summary: While Newman is a separate Node.js tool, its functionality can be effectively leveraged within a Java ecosystem by executing its commands from Java code, or by directly implementing API calls using Java libraries.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
Today's Topics:
1. Running postman collection from IBM i? (David Gibbs via WEB400)
----------------------------------------------------------------------
message: 1
date: Mon, 17 Nov 2025 11:49:54 -0600
from: David Gibbs via WEB400 <web400@xxxxxxxxxxxxxxxxxx>
subject: [WEB400] Running postman collection from IBM i?
Folks:
Has anyone figured out a way to run a postman collection from IBM i?
Postman has a CLI tool for linux, Mac, & Windows ... but, unsurprisingly,
not for AIX or IBM i.
I want to figure out a way to trigger a run of test suite against some
API's when we deploy changes.
Thanks!
David
-
As an Amazon Associate we earn from qualifying purchases.