|
| 1 | +# 🚀 Selenium Java Automation Framework |
| 2 | + |
| 3 | +A **modular test automation framework** built with **Selenium, TestNG, Maven, and Page Object Model (POM)**, designed for **scalability, maintainability, and CI/CD integration**. |
| 4 | +This framework demonstrates expertise in **automation architecture, data-driven testing, reusable components, and structured reporting**. |
| 5 | + |
| 6 | +--- |
| 7 | + |
| 8 | +## 📂 Project Structure |
| 9 | + |
| 10 | +TestAutomationFramework |
| 11 | +│── pom.xml # Maven configuration & dependencies |
| 12 | +│── src/test/java |
| 13 | +│ ├── base/BaseTest.java # WebDriver setup & reusable test base |
| 14 | +│ ├── testcase/MyFirstTestFW.java # Sample test case using POM & TestNG |
| 15 | +│ ├── utilities/ReadXLSdata.java # Excel-driven data provider |
| 16 | +│ ├── utilities/readpropertyFile.java # Config file handler |
| 17 | +│── src/test/resources # Test data & configuration files |
| 18 | +│── testrunner/ # TestNG runner XMLs |
| 19 | +│── test-output/ # TestNG reports |
| 20 | + |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +## ⚡ Key Features |
| 25 | + |
| 26 | +- **Page Object Model (POM):** Enhances maintainability & reusability. |
| 27 | +- **TestNG Integration:** Parallel execution, reporting, and annotations. |
| 28 | +- **Excel-Driven Data Handling:** Flexible data provider for test cases. |
| 29 | +- **Maven Build Management:** Dependency handling & CI/CD readiness. |
| 30 | +- **Configuration Management:** Centralized property file handling. |
| 31 | +- **Reporting:** Auto-generated TestNG reports with logs and test results. |
| 32 | +- **Scalable Architecture:** Easy to extend for new test modules. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## 🛠️ Tech Stack |
| 37 | + |
| 38 | +- **Language:** Java |
| 39 | +- **Test Automation:** Selenium WebDriver |
| 40 | +- **Testing Framework:** TestNG |
| 41 | +- **Build Tool:** Maven |
| 42 | +- **Data Handling:** Apache POI (Excel) |
| 43 | +- **IDE:** IntelliJ IDEA |
| 44 | +--- |
| 45 | + |
| 46 | +## ▶️ Getting Started |
| 47 | + |
| 48 | +### Prerequisites |
| 49 | +- Java JDK 8+ |
| 50 | +- Maven 3+ |
| 51 | +- IntelliJ IDEA / Eclipse |
| 52 | + |
| 53 | +### Setup |
| 54 | +```bash |
| 55 | +# Clone repository |
| 56 | +git clone <repo-url> |
| 57 | +cd TestAutomationFramework |
| 58 | + |
| 59 | +# Install dependencies |
| 60 | +mvn clean install |
| 61 | +# Run all TestNG tests |
| 62 | +mvn test |
1 | 63 |
|
0 commit comments