This project demonstrates API Testing using Postman and Newman.
The project includes:
- API Requests
- Test Scripts
- Environment Variables
- Newman Execution
- HTML Report Generation
- Sample API Collections
- Postman
- Newman
- Node.js
- JSON
- REST API
- htmlextra Reporter
Postman is an API client used for developing, testing, documenting, and sharing APIs.
Features:
- Send HTTP requests
- Validate responses
- Organize requests into collections
- Use environments and variables
- Automate execution using Newman
- Generate execution reports
A request consists of:
- URL
- HTTP Method
- Headers
- Body/Payload
- Parameters
A Collection is a folder that stores related API requests.
- Open Postman.
- Click Collections.
- Click + New Collection.
- Enter collection name.
- Save the collection.
- Click the three dots (...)
- Select Add Request.
- Enter request name.
- Select method (GET, POST, PUT, DELETE).
- Enter endpoint URL.
- Click Send.
An Environment is a group of variables used across multiple requests.
- Open Environments.
- Click +
- Enter Environment Name.
- Add Variables.
- Save.
Example:
{{base_url}}