This project is a Selenium with Java project for testing the Amazon website. It follows the guidelines provided below:
-
Maven Project: The project is structured as a Maven project for easy dependency management and build automation.
-
Page Object Model (POM) Framework: The implementation follows the Page Object Model framework to enhance test maintenance and readability.
-
Test Data from Properties File: Test data such as application URL, browser name, and global wait time are read from a properties file.
-
Test Configurations: Application URL, browser name, and global wait time configurations are read from the properties file.
-
Assertions: Proper assertions are implemented to validate the expected behavior of the application.
-
Wait Mechanisms: Implicit and explicit waits are used wherever necessary to handle synchronization issues.
-
Extent Report Integration: Extent report is implemented to generate detailed test reports with proper assertions and error descriptions.
-
Screenshot Capture: Screenshots are captured with the same name as the test case and appended with a brief description of the error in case of test failures.
-
Cross-Browser Testing: Tests are run on IE, Chrome, and Firefox browsers to ensure compatibility across different browsers.
-
Automated Scenarios: At least 10 automated scenarios are implemented across different flows and screens of the Amazon website.
-
Logger Implementation: Logger implementation is included for better logging and debugging capabilities.
- Clone this repository to your local machine.
- Ensure you have Java, Maven, and your preferred web browser installed on your system.
- Update the
config.properties
file with the required configurations such as application URL, browser name, and global wait time. - Open a terminal or command prompt and navigate to the project directory.
- Run the command
mvn clean test
to execute the test cases. - After execution, the Extent report will be generated in the
test-output
directory.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.