This project tests APIs using Postman and RestAssured with Java. It covers functional, regression, and performance testing to ensure API reliability.
- Tests GET, POST, PUT, DELETE requests.
- Validates responses, status codes, and headers.
- Supports authentication methods (OAuth, JWT, API Key, Basic Auth).
- Runs tests using Postman and Newman.
- Generates reports using Newman and Extent Reports.
- Integrates with CI/CD pipelines.
- Tools: Postman, RestAssured
- Language: Java
- Test Framework: TestNG
- Build Tool: Maven
- Performance Testing: JMeter
- Reporting: Newman, Extent Reports
- CI/CD: GitHub Actions, Jenkins
- Clone the repository:
git clone https://github.com/PromojitPaul/API-Testing.git
- Navigate to the directory:
cd API-Testing
- Install dependencies:
mvn clean install
- Run Postman tests with Newman:
newman run collection.json -e environment.json
- Run API tests with Maven:
mvn test
- Generate reports:
mvn allure:serve
├── src/
│ ├── main/java/
│ │ ├── base/ # API request setup
│ │ ├── utils/ # Utility classes
│ ├── test/java/tests/ # API test scripts
│ │ ├── GetAPITest.java
│ │ ├── PostAPITest.java
│ │ ├── PutAPITest.java
│ │ ├── DeleteAPITest.java
│ │ ├── testdata/ # Test data (JSON, CSV)
│ ├── resources/
│ │ ├── postman/ # Postman collections
│ │ │ ├── collection.json
│ │ │ ├── environment.json
│ │ ├── config.properties # API configurations
│ │ ├── testng.xml # Test execution config
├── reports/ # Test reports
├── logs/ # Execution logs
├── pom.xml # Maven dependencies
├── README.md # Documentation
- Tests run on code push and pull requests.
- Automated test execution using GitHub Actions/Jenkins.
- Reports generated after execution.
For more details, check the repository or connect via GitHub.