This project demonstrates API test automation using Postman for test case design and Newman for execution. Additionally, it integrates with Jenkins to automate the testing process in a CI/CD pipeline.
β Postman - API testing tool for designing test cases. β Newman - Command-line runner for executing Postman collections. β Newman Reporter HTML Extra - Generates detailed HTML reports. β Jenkins - Automates test execution in a CI/CD environment. β GitHub - Version control system for managing test collections.
πΉ Create & Export API Test Cases in Postman - Design and export collections as .postman_collection.json.
πΉ Execute Tests via Newman - Run tests from the command line.
πΉ Generate HTML Reports - Store execution results in an easy-to-read format.
πΉ Automate Execution with Jenkins - Schedule and execute tests in a pipeline.
AutomatedAPITesting/
βββ Postman/
β βββ API-testing - Petstore API.postman_collection.json
β βββ newman/ (Contains execution reports)
βββ files/ (Additional test resources)
βββ README.md
git clone https://github.com/DevelUps/AutomatedAPITesting.git
cd AutomatedAPITestingEnsure Node.js and Newman are installed:
npm install -g newman newman-reporter-htmlextranewman run Postman/API-testing\ -\ Petstore\ API.postman_collection.json -r htmlextraAfter execution, an HTML report will be generated in the Postman/newman/ folder.
- Configure a Jenkins Freestyle Project.
- Add a Build Step to execute the following command:
newman run Postman/API-testing\ -\ Petstore\ API.postman_collection.json -r htmlextra
- Set up post-build actions to display the report.
If you would like to contribute, fork the repository and submit a pull request with improvements!
This project is licensed under the MIT License. Feel free to use and modify it.
π Happy Testing!