Welcome to the Selenium Java UI testing framework, a comprehensive automation framework implementation using Java, Selenium WebDriver, TestNG, and Gradle. This guide will help you set up and execute UI tests efficiently using industry-standard practices.
Before getting started with the framework, ensure that you have the following prerequisites installed:
- Java: Install Java on your system.
- Gradle: Install Gradle as the build tool for the project.
- Selenium WebDriver: Set up Selenium WebDriver for Java.
- TestNg: Install TestNG as the testing framework.
- Browser: Install Firefox and Chrome browsers.
- Browser drivers: Download the respective browser drivers (Chromidriver for Chrome and Geckodriver for Firefox).
- IntelliJ: Install intelliJ as the preferred IDE.
Test web application The tests in this framework are designed for the web application available at the following URL: https://juice-shop-web-applicatiohn.herokuapp.com/#/
To run the tests, follow the steps below:
- Open the terminal or command prompt.
- Navigate to the project directory.
- Execute the Gradle task to run the tests:
This command will trigger the execute of the tests using Gradle, running all the TestNG test cases in the project.
./gradlew test
Feel free to explore and enhance the Selenium Java UI testing framework to suit your specific testing requirements. Happy testing! 😊