Skip to content

alphabin1/sample-selenium-java-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Java UI Testing Example

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.

Prerequisite

Before getting started with the framework, ensure that you have the following prerequisites installed:

  1. Java: Install Java on your system.
  2. Gradle: Install Gradle as the build tool for the project.
  3. Selenium WebDriver: Set up Selenium WebDriver for Java.
  4. TestNg: Install TestNG as the testing framework.
  5. Browser: Install Firefox and Chrome browsers.
  6. Browser drivers: Download the respective browser drivers (Chromidriver for Chrome and Geckodriver for Firefox).
  7. 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/#/

Running Tests

To run the tests, follow the steps below:

  1. Open the terminal or command prompt.
  2. Navigate to the project directory.
  3. Execute the Gradle task to run the tests:
    ./gradlew test
    
    This command will trigger the execute of the tests using Gradle, running all the TestNG test cases in the project.

Feel free to explore and enhance the Selenium Java UI testing framework to suit your specific testing requirements. Happy testing! 😊

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published