This project demonstrates my skills in API testing using Postman. I tested the ReqRes API, a free dummy API, to perform various operations like GET, POST, PUT, DELETE, and validated responses using Postman tests. I also used Postman Environments, Newman for command-line execution, and htmlextra for generating detailed HTML reports.
- Postman: For API testing and automation.
- Newman: For running Postman collections from the command line.
- htmlextra: For generating detailed HTML reports.
- ReqRes API: A free dummy API for testing CRUD operations.
-
API Testing:
- Tested GET, POST, PUT, DELETE endpoints.
- Validated status codes, response time, and response data types.
- Used Postman tests to ensure API responses are correct.
-
Environment Variables:
- Used Postman Environments to manage variables like
url.
- Used Postman Environments to manage variables like
-
Reports:
- Generated HTML reports using htmlextra for better visualization of test results.
-
Test Cases:
- Validated response time (e.g., response time < 500ms).
- Checked status codes (e.g., 200 for success, 201 for created, 204 for deleted).
- Verified response data types (e.g.,
nameis a string,idis a number).
git clone https://github.com/daniyalfarman/Postman-API-Testing-Demo.git
cd postman-api-testing-demoInstall Newman and htmlextra globally:
npm install -g newman newman-reporter-htmlextraRun the Postman collection using Newman:
newman run postman_api_testing_demo.json -e postman_api_testing_env.jsonRun the Postman collection using Newman:
newman run postman_api_testing_demo.json -e postman_api_testing_env.json -r htmlextraAfter running the tests, an HTML report will be generated in the newman folder. Open it in your browser:
open newman/ `nameofhtmlfile`Here are some screenshots of the project:
This project showcases my ability to:
- Perform API testing using Postman.
- Use Postman Environments for managing variables.
- Use Newman for running tests from command line and generate HTML reports.
- Write comprehensive test cases to validate API responses.
- GitHub Repository: Postman API Testing Project
- ReqRes API Documentation: ReqRes API Docs



