This project demonstrates web automation testing using Selenium WebDriver, TestNG, and Allure for reporting.
- Java
- Selenium WebDriver
- TestNG
- Allure
-
Clone the repository:
git clone https://github.com/yourusername/selenium-web-automation.git
-
Navigate to the project directory:
cd selenium-web-automation -
Install dependencies using Maven:
mvn clean install
-
Run the tests:
mvn test -
Generate Allure report (optional):
allure serve target/allure-results
To add more test cases, create new test methods in existing test classes or create new test classes under the com.thetestingacademy.tests package. Make sure to annotate the test methods with appropriate TestNG annotations and include any necessary setup or teardown steps in the BaseTest class.
selenium-web-automation/
├── src/
│ ├── main/
│ │ └── java/
│ │ └── com/
│ │ └── thetestingacademy/
│ │ ├── base/
│ │ │ └── BaseTest.java
│ │ ├── constants/
│ │ │ └── Constants.java
│ │ ├── listeners/
│ │ │ ├── RetryAnalyzer.java
│ │ │ └── TestListener.java
│ │ ├── pageobjects/
│ │ │ └── GoogleHomePage.java
│ │ └── tests/
│ │ └── GoogleTest.java
│ └── test/
│ └── resources/
│ └── testng.xml
├── .gitignore
├── pom.xml
└── README.md
Feel free to customize this README.md file according to your project's specific requirements and structure.