A REST API automation framework built with Java and REST Assured for testing RESTful APIs.
- Java 17 or higher
- Maven 3.6. 0 or higher
- Clone the repository:
git clone https://github.com/dhananjaylavate/RestAssuredAPIAutomation.git
cd RestAssuredAPIAutomation- Install dependencies:
mvn clean installThe project uses the following dependencies:
- REST Assured (5.3.0) - REST API testing library
- TestNG (7.10.2) - Testing framework
- Jackson Databind (2.18.2) - JSON processing
- Jackson Core (2.18.2) - Core JSON processing
- SLF4J (2.0.13) - Logging
- Log4j2 (2.20.0) - Logging framework
RestAssuredAPIAutomation/
├── src/
│ └── test/
│ └── java/
│ └── com/api/tests/
│ ├── SignUpTest
│ ├── UpdateUserUpdateTest
│ ├── LoginTest4
│ ├── GetUserProfileTest
│ └── ForgotPasswordTest
├── pom.xml
├── testng.xml
└── README.md
The following test classes are configured in testng.xml:
- SignUpTest - User registration tests
- UpdateUserUpdateTest - User profile update tests
- LoginTest4 - Login functionality tests
- GetUserProfileTest - User profile retrieval tests
- ForgotPasswordTest - Password recovery tests
mvn testmvn test -Dtest=SignUpTestmvn test -Dsuite=testng. xml- Source/Target Java Version: 17
- Source Encoding: UTF-8
- Test Runner: Maven Surefire Plugin (3.0.0-M5)
- Test Configuration: testng.xml with 5 concurrent threads
Swagger UI: http://64.227.160.186:8080/swagger-ui/index.html#/Authentication/registerUser
Dhananjay Lavate