-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the JPostman Wiki.
JPostman is a lightweight Java library for reusing exported Postman collections and environments in Java API tests. It helps you move API testing workflows from Postman into Java-based test automation projects while keeping your existing Postman collections reusable.
Watch JPostman tutorials on YouTube:
https://www.youtube.com/@JPostmanAPI
This Wiki will be updated with new tutorial pages as future videos are published.
| Part | Topic | Wiki Page |
|---|---|---|
| Part 1 | JPostman setup and Java Maven API testing project creation | JPostman Tutorial Part 1: JPostman Setup and create a Java Maven API Testing Project |
| Part 2 | Execute REST API requests with RestAssured | JPostman Tutorial Part 2: Execute REST API Requests with RestAssured |
| Part 3 | Access token and chained requests | JPostman Tutorial Part 3: Access Token and Chained Requests |
| Part 4 | Secure API logs with jpostman-secure
|
JPostman Tutorial Part 4: Secure API Logs with jpostman-secure |
The current tutorials cover setup, REST API execution, chained requests, and secure logging:
- Create a Java Maven API testing project.
- Export Postman collection and environment JSON files.
- Add JPostman Maven dependencies.
- Execute REST API requests from Java.
- Use RestAssured as the execution adapter.
- Resolve Postman environment variables.
- Validate API responses with assertions.
- Chain requests using an access token.
- Protect request and response logs with
jpostman-secure. - Move reusable secure rules into INI policy profiles.
Future tutorials will be added here as new videos are released.
The first tutorial explains how to create a Java Maven project and configure it with JPostman.
Topics include:
- Creating a Maven project.
- Exporting a Postman collection.
- Exporting a Postman environment.
- Adding
jpostman-core. - Adding TestNG.
- Loading collection and environment files from
src/test/resources.
Wiki page:
The second tutorial explains how to execute a REST API request from Java using the JPostman RestAssured adapter.
Topics include:
- Adding
jpostman-restassured. - Adding Logback for console logging.
- Printing the loaded Postman collection.
- Selecting a request from the collection.
- Resolving environment placeholders.
- Executing the request with
RestAssuredExecutor.
Wiki page:
The third tutorial explains how to work with access tokens and chained requests.
Topics include:
- Understanding immutable
Requestobjects. - Building resolved requests.
- Comparing unresolved and resolved requests.
- Adding status code assertions.
- Extracting an
accessTokenfrom a login response. - Passing the token to another request.
- Creating a chained API test flow.
Wiki page:
The fourth tutorial explains how to protect request and response logs with the jpostman-secure module.
Topics include:
- Adding
jpostman-secure. - Creating a
SecureContext. - Wrapping requests with
SecureRequest. - Wrapping responses with
SecureResponse. - Using
secret(env)andunsecret(...). - Masking sensitive fields with
redact(...). - Protecting headers with
headers(...). - Reducing response headers with
headersFilter(...). - Loading secure INI policy files.
- Applying policy profiles with
loadRules(...). - Filtering response output with
filter(...).
Wiki page:
JPostman provides a core library, optional executor adapters, and secure logging support.
| Module | Description |
|---|---|
jpostman-core |
Main library for loading and resolving Postman collections and environments |
jpostman-restassured |
RestAssured executor adapter |
jpostman-httpclient |
Java HttpClient executor adapter |
jpostman-playwright |
Playwright executor adapter |
jpostman-unirest |
Unirest executor adapter |
jpostman-secure |
Secure request and response logging, redaction rules, and policy profiles |
- YouTube Channel: https://www.youtube.com/@JPostmanAPI
- JPostman API Documentation: https://jpostman.github.io/jpostman/
- GitHub Repository: https://github.com/JPostman/jpostman
- GitHub Wiki: https://github.com/JPostman/jpostman/wiki
This Home page is the starting point for the JPostman tutorial series.
As new videos are created, add them to the Tutorial Videos table and include a short summary under the Current Tutorial Series section.