This project demonstrates automated testing of the Magento e-commerce platform's authentication flows using Selenium WebDriver with Java, implementing both BDD (Behavior-Driven Development) and POM (Page Object Model) patterns.
The project automates testing of:
- User account creation (Sign Up)
- User authentication (Sign In)
- Account verification
Test site: https://magento.softwaretestingboard.com/
- Java 11
- Selenium WebDriver
- Cucumber (BDD)
- JUnit
- Maven
- Each web page has a corresponding Page class
- Page classes encapsulate page elements and actions
- Promotes code reuse and maintainability
- Feature files written in Gherkin syntax
- Scenarios describe user behaviors
- Step definitions link features to code
SignUpPage
: Handles account creation flowSignInPage
: Manages login functionalityMyAccountPage
: Verifies successful authentication
Actions
: Common Selenium interactions with wait strategiesWebDriverTool
: Browser managementUserCredentials
: Manages test user data
- Cucumber feature files describe test scenarios
- JUnit runner executes tests
- Step definitions implement test steps
- Clone the repository
- Install dependencies:
mvn clean install
- Run tests:
mvn test
The automation covers the following scenarios:
- Successful account creation
- Successful login with created account
- Verification of account features
Detailed test cases are documented in the accompanying Excel file.
The framework includes:
- Explicit waits for element interactions
- Proper exception handling
- Clear error messages
- Robust element location strategies
- Clean code principles
- Proper documentation
- Consistent naming conventions
- Modular design
- Reusable components
- Separation of concerns
- Java 11 or higher
- Maven
- Chrome browser
- ChromeDriver matching your Chrome version
FurkanYY
This project is licensed under the MIT License - see the LICENSE file for details