description Overview
Postman is the world's leading API development platform, used by over 25 million developers and 500,000 organizations worldwide. It provides a comprehensive suite of tools for designing, testing, documenting, and monitoring APIs.
With Postman, QA engineers can create and run automated API tests, generate documentation, mock API responses, and integrate with CI/CD pipelines using Newman, the command-line collection runner.
stars Key Features
Send requests and inspect responses
Organize and share API requests
Manage variables across stages
Write tests in JavaScript
CLI runner for CI/CD integration
Simulate API responses
Auto-generate docs from collections
Postbot for API help
Team collaboration
API performance tracking
terminal Installation & Usage
# Install Newman globally
npm install -g newman
# Run a collection
newman run my-collection.json -e my-environment.json
# Run with environment variables
newman run my-collection.json --env-var "baseUrl=https://api.example.com"
# Generate HTML report
newman run my-collection.json --reporters html --reporter-html-export report.html
// Postman test script for an API endpoint
// Run after a request is made
// Check status code
pm.test("Status code is 200", () => {
pm.response.to.have.status(200);
});
// Validate response body
pm.test("Response has user data", () => {
const jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('id');
pm.expect(jsonData).to.have.property('email');
});
// Validate response time
pm.test("Response time is less than 500ms", () => {
pm.expect(pm.response.responseTime).to.be.below(500);
});
// Check headers
pm.test("Content-Type is JSON", () => {
pm.response.to.have.header('Content-Type');
pm.expect(pm.response.headers.get('Content-Type'))
.to.include('application/json');
});
// Save response data to environment variable
const jsonData = pm.response.json();
pm.environment.set('userId', jsonData.id);
history Version History
settings System Requirements
chat Community Reviews
"Postman has revolutionized our API testing workflow. The collection runner and Newman integration with our CI/CD pipeline saved us countless hours."
"Great tool for API testing. The environment variables and pre-request scripts make it easy to handle complex authentication flows."
"The automated testing capabilities are fantastic. We've been able to create comprehensive test suites that run on every deployment."