This project is aimed at automating testing scenarios for the Flipkart website using Selenium, Java, Maven, and TestNG. The project implements various features and best practices to ensure efficient and reliable testing.
- Automated testing of the Flipkart website across different flows and screens.
- Page Object Model (POM) implemented using Page Factory for better code organization and maintenance.
- Test data read from Excel files, allowing selective test case execution based on the "Execution Required" field.
- Configuration files used for managing global parameters.
- Proper waits (implicit and explicit) utilized for synchronized test execution.
- Tests run on Microsoft Edge, Chrome, Firefox browsers with an option to run in headless mode on Chrome.
- Grouping, priority, and enable/disable features of TestNG used for managing test cases.
- Assertions used throughout the suite for validating expected outcomes.
- Error screenshots and detailed assertions added to the Extent Report for effective reporting.
- Reusable libraries created and imported as JARs for code modularity.
- ReadMe document provided for installation and running instructions.
- Integration with Jenkins and GitHub for Continuous Integration/Continuous Deployment (CI/CD) pipelines.
- Test Suite executable from the command line using Maven.
- Logger implemented for logging test case execution details.
- Swipe scroll and Dimensions used for enhanced user interactions.
- Selenium
- Java
- TestNG
- Maven
- Clone the repository from GitHub: repository_link
- Ensure you have Java JDK, Maven, and relevant browsers installed on your system.
- Set up the project in your preferred IDE (Eclipse, IntelliJ, etc.).
- Configure the project dependencies and ensure all necessary libraries are included.
- Update the configuration files with the required parameters such as URLs, API keys, etc.
- Run the test suite using the Maven command:
mvn test
- View the test results in the Extent Report generated after the test execution.
- For CI/CD integration, configure the Jenkins pipeline to pull code from the GitHub repository and execute the tests automatically.
This project is licensed under the MIT License - see the LICENSE file for details.