This project is designed to automate the testing of an enterprise-level website. It employs robust frameworks and tools to ensure high-quality, efficient, and scalable test execution. The suite is built with Selenium and Java and supports advanced reporting, cross-browser testing, and continuous integration.
- Framework: Hybrid Framework (Data-Driven + Keyword-Driven + Modular)
- Language: Java
- Test Runner: TestNG
- Reporting: Allure Reports
- Browser Support: Chrome, Firefox, Edge, and Safari
- Integration: CI/CD tools (e.g., Jenkins, GitHub Actions)
- Bug Tracking: Integration with bug-tracking tools like JIRA
- Java: JDK 8 or higher
- Maven: Version 3.6 or higher
- Selenium WebDriver: Latest version
- IDE: IntelliJ IDEA or Eclipse
- Allure Commandline: Installed and configured
- Browser Drivers: Appropriate drivers (e.g., chromedriver, geckodriver) available in the PATH
|-- src
|-- main
|-- java
|-- base
|-- utils
|-- test
|-- java
|-- testcases
|-- data
|-- resources
|-- config.properties
|-- testdata.xlsx
|-- reports
|-- allure-results
|-- pom.xml
|-- README.md
- base: Contains core framework classes like BaseTest and WebDriverManager.
- utils: Includes utility classes for logging, reporting, and common actions.
- testcases: Houses the test scripts.
- data: Contains test data files.
- Clone the repository:
git clone <repository-url> - Navigate to the project directory:
cd <project-directory> - Install dependencies:
mvn clean install
- Update the
config.propertiesfile in theresourcesdirectory with your environment-specific settings (e.g., base URL, browser). - Ensure that browser drivers are properly set up and accessible in the system PATH.
- Run All Tests:
mvn test - Run Specific Test Suite:
mvn test -DsuiteXmlFile=testng.xml - Generate Allure Report:
allure serve allure-results
- This project includes a
Jenkinsfile/.github/workflowsconfiguration for continuous integration and automated test execution. - Modify the configuration files as needed for your environment.
- Organize Test Data: Use external files for test data to enhance maintainability.
- Avoid Hardcoding: Use
config.propertiesfor environment-specific configurations. - Version Control: Commit changes to the repository with clear messages.
- Continuous Testing: Leverage CI/CD pipelines for frequent execution.
- WebDriver Exception: Verify that the correct browser driver version is used.
- Test Failure: Review logs in the
reportsdirectory or check the Allure dashboard. - Dependency Issues: Run
mvn dependency:resolveto fix dependency conflicts.
--Deepak--
This project is licensed under the MIT License.