Automation-Exercise

πŸš€ Automation Exercise Test Suite (Selenium + TestNG)

πŸ“Œ Overview

This project is an automated end-to-end test scenario for the website Automation Exercise using Java, Selenium WebDriver, and TestNG.

The goal is to simulate a real user journey and validate critical e-commerce functionalities.


πŸ§ͺ Test Scenario

The automation script performs the following steps:

  1. Navigate to the website
  2. Register a new user
  3. Log in with the created user
  4. Add a product to the cart
  5. Verify the product is added successfully
  6. Proceed to the payment step

πŸ› οΈ Tech Stack


πŸ“‚ Project Structure

Automation-Exercise/
β”œβ”€β”€ src/test/java/
β”‚   └── AutomationExercise/
β”‚       └── AutomationExercise.java
β”œβ”€β”€ pom.xml
β”œβ”€β”€ README.md
└── .github/workflows/

βš™οΈ Setup & Installation

1. Prerequisites

Make sure you have installed:


2. Clone the Repository

git clone https://github.com/UGURAKSAHIN/Automation-Exercise.git
cd Automation-Exercise

3. Install Dependencies

mvn clean install

4. Configure WebDriver

Set your ChromeDriver path:

System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");

πŸ’‘ Tip: You can use WebDriverManager to avoid manual setup.


▢️ Run Tests

mvn test

πŸ“Š Test Output

Test results can be found in:

test-output/

✨ Improvements (Planned)


πŸ“„ License

This project is licensed under the MIT License.


πŸ‘€ Author

Uğur Akşahin