This repository showcases various API automation projects, each focusing on different aspects of API testing using Postman collections.
This repository contains an API Automation Testing Framework designed to validate and ensure the reliability, performance, and security of APIs. The framework is built using Postman, Rest Assured, and Java, following best practices in API testing.
- Programming Language: Java
- Testing Framework: TestNG
- API Testing: Postman, Rest Assured
- Build & Dependency Management: Maven
- CI/CD Integration: Jenkins
- Version Control: Git & GitHub
- Reporting: Extent Reports, Allure Reports
APIAutomation/
│── src/
│ ├── main/java/ (Utility & Helper Classes)
│ ├── test/java/ (Test Cases & API Testing Logic)
│── pom.xml (Maven Dependencies)
│── testng.xml (TestNG Configuration)
│── README.md (Project Documentation)
✔️ End-to-End API Testing (GET, POST, PUT, DELETE)
✔️ Automated Test Execution with TestNG
✔️ Request & Response Validation
✔️ Data-Driven Testing using JSON & Excel
✔️ Custom Reporting (Extent Reports & Allure)
✔️ CI/CD Integration with Jenkins
✔️ Error Handling & Logging
- Project 1: JSON Server API Testing
- Project 2: OpenCart Registration Request
- Project 3: SOAP API Testing (Number Conversion)
- Project 4: Restful Booker API Testing
- Project 5: Mock API Testing
- Project 6: Data-Driven API Testing
- Project 7: E2E Scenarios - Restful Booker with Authentication
- Getting Started
- Prerequisites
- Running the Tests
- Contributing
- License
Collection File: Project #1 API Testing - json server.postman_collection.json
This project involves testing APIs provided by a JSON Server, which is commonly used as a mock REST API for development and testing purposes. The collection includes various endpoints to perform CRUD operations.
Collection File: project #2 Opencart Registration request.postman_collection.json
This project focuses on automating the registration process of OpenCart, an open-source online store management system. The collection simulates user registration by sending appropriate requests to the OpenCart API.
Collection File: Project #3- SOAP API Testing(Number conversion).postman_collection.json
This project demonstrates testing of a SOAP-based web service that performs number conversion. The collection includes requests to convert numbers between different formats, showcasing how to handle SOAP requests in Postman.
Collection File: Project #4 - Restful Booker API Testing.json
This project involves testing the Restful Booker API, a RESTful service designed for testing purposes. The collection covers various endpoints related to booking management, including creating, updating, retrieving, and deleting bookings.
Collection File: Project #5 - Mock API.postman_collection.json
This project involves testing mock APIs using Postman to simulate different API responses and behaviors. It is useful for testing API integration before actual development.
Collection File: Project #6 - Data Driven Testing.postman_collection.json
This project focuses on data-driven API testing using Postman. It automates API tests by dynamically passing test data from external sources like CSV or JSON files.
Collection File: E2E Scenarios - Restful Booker with (Auth).postman_collection.json
This project includes end-to-end testing scenarios for the Restful Booker API, incorporating authentication mechanisms. It ensures complete workflow validation for booking management.
To get started with these projects, you can import the provided Postman collections into your Postman application and execute the requests against the respective APIs.
- Postman installed on your machine.
- Basic understanding of API testing concepts.
- For Project 1: A running instance of JSON Server.
- For Project 2: Access to an OpenCart instance.
- For Project 3: Access to the Number Conversion SOAP API.
- For Project 4, 5, 6, 7: Access to the respective API endpoints.
-
Clone the Repository:
git clone https://github.com/prasad291024/APIAutomation.git
-
Open Postman:
- Launch the Postman application on your machine.
-
Import Collection:
- Click on the "Import" button in Postman.
- Select the desired collection file (e.g.,
Project #1 API Testing - json server.postman_collection.json) from the cloned repository. - Click "Open" to import the collection.
-
Set Up Environment (If Applicable):
- Some collections may require specific environment variables. Set up the necessary environments in Postman.
-
Execute Requests:
- Open the imported collection in Postman.
- Select the desired request and click "Send" to execute it.
- Review the response and ensure it meets the expected outcome.
Contributions are welcome! If you have any suggestions or improvements, please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Fork the repository.
- Create a new branch (
feature/your-feature-name). - Commit your changes with meaningful messages.
- Push to your branch and create a pull request.
📧 Email: [your email here]
🔗 GitHub: https://github.com/prasad291024
💼 LinkedIn: https://www.linkedin.com/in/prasad-valiv/
⭐ If you find this project useful, don't forget to star the repository! 🌟