This is a complete project where a DemoQA site is automated by writing test suites using selenium-webdriver and TestNg as testing framework.
The following key modules/pages are automated:
- Practice_Form
- TextBox_Elements
For failed test cases it will take a screenshot aswell at the point of failure.
- Tool: Selenium Webdriver
- IDE: Intellij
- Build tool: Gradle
- Language: Java
- Test_Runner: TestNG
- Need to install jdk 11, gradle and allure
- Configure Environment variable for jdk 11, gradle and allure
- Clone this project and unzip it
- Open the project folder
- Double click on "build.gradle" and open it through IntellIJ IDEA
- Let the project build successfully
- Click on "Terminal" and run the automation scripts
gradle clean test
- Selenium will open the browser and start automating.
- After automation to view allure report , give the following commands:
allure generate allure-results --clean -o allure-report
allure serve allure-results