Skip to content

DevelUps/AutomatedAPITesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Automated API Testing with Postman & Newman

πŸ“– Project Overview

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.


πŸ›  Technologies Used

βœ… 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.


πŸš€ Project Features

πŸ”Ή 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.


πŸ“‚ Project Structure

AutomatedAPITesting/
│── Postman/
β”‚   β”œβ”€β”€ API-testing - Petstore API.postman_collection.json
β”‚   β”œβ”€β”€ newman/ (Contains execution reports)
│── files/ (Additional test resources)
│── README.md

βš™οΈ How to Use This Project

1️⃣ Clone the Repository

git clone https://github.com/DevelUps/AutomatedAPITesting.git
cd AutomatedAPITesting

2️⃣ Install Dependencies

Ensure Node.js and Newman are installed:

npm install -g newman newman-reporter-htmlextra

3️⃣ Run API Tests with Newman

newman run Postman/API-testing\ -\ Petstore\ API.postman_collection.json -r htmlextra

After execution, an HTML report will be generated in the Postman/newman/ folder.

4️⃣ Automate Tests in Jenkins

  • 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.

πŸ“Œ Contributing

If you would like to contribute, fork the repository and submit a pull request with improvements!


πŸ”— License

This project is licensed under the MIT License. Feel free to use and modify it.

πŸš€ Happy Testing!

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages