This project is a Selenium-based & RESTAssured automated testing framework written in Java. It follows the Page Object Model (POM) and Behavior Driven Development (BDD) principles to provide a structured and maintainable way to write and execute tests. The framework uses WebDriverManager to manage browser drivers and supports running tests in headless mode for continuous integration environments.
- Java Development Kit (JDK) 22
- Maven
- Chrome or Firefox browser
-
Clone the repository:
-
Install dependencies:
mvn clean install
mvn clean test -Dtest=UiTestRunner
mvn clean test -Dtest=ApiTestRunner
Edit the src/main/resources/config.json
file to set up the configuration parameters, such as the URL, username, password, and whether to run in headless mode.
Example config.json
:
{
"url": "https://www.example.com",
"username": "testuser",
"password": "testpassword",
"headless": true
}