This project contains automated UI tests for an e-commerce website built using Selenium WebDriver with Java, TestNG, and Page Object Model design pattern.
The automation framework tests the functionality of the AskOmDch e-commerce website, focusing on the shopping and checkout process. The tests are organized using the Page Object Model (POM) design pattern to improve maintainability and reusability.
- Java 8
- Selenium WebDriver 4.0.0
- TestNG 7.4.0
- WebDriverManager 5.0.3
- Maven
├── src
│ └── test
│ └── java
│ └── com
│ └── automationpractice
│ └── tests
│ ├── LoginTests.java
│ └── pom
│ ├── base
│ │ ├── BasePage.java
│ │ └── BaseTest.java
│ ├── factory
│ │ └── DriverManager.java
│ └── pages
│ ├── HomePage.java
│ └── StorePage.java
├── .gitignore
└── pom.xml
- Page Object Model: Separates test code from page-specific code
- Base Classes: Provides common functionality for pages and tests
- Driver Management: Centralized WebDriver initialization
- Test Cases: End-to-end flow for product search, cart addition, and checkout process
Currently, the project includes:
- Login Test: Searches for "Blue Shoes", adds item to cart, proceeds to checkout, and fills in customer information
- Java JDK 8
- Maven
- Chrome browser
-
Clone the repository:
git clone https://github.com/yourusername/automationpractice-ui-tests.git -
Navigate to the project directory:
cd automationpractice-ui-tests -
Install dependencies:
mvn clean install
Run tests using Maven:
mvn test
Or run specific test class:
mvn test -Dtest=LoginTests
- Add more test cases for different scenarios
- Implement reporting (Allure, ExtentReports)
- Add configuration for cross-browser testing
- Implement data-driven testing
- Add CI/CD integration
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Mohammed Lukmanudin M - GitHub Profile