Skip to content

Showcases the combination of Selenium with JUnit and Surefire reporting.

Notifications You must be signed in to change notification settings

geozi/selenium-junit-surefire-reporting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium-junit-surefire-reporting

Demo App

About the project

This project was created as part of my preparation for the "Software Engineer in Test" job application. Its purpose is to showcase the combination of Selenium with JUnit and Surefire reporting.

Prerequisites

  • Java 17 or higher,
  • Intellij IDEA (or any other Java IDE),
  • Maven,
  • Selenium.

Dependencies

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>4.23.0</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-firefox-driver -->
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-firefox-driver</artifactId>
      <version>4.23.0</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-chrome-driver -->
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-chrome-driver</artifactId>
      <version>4.23.0</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.10.3</version>
      <scope>test</scope>
    </dependency>
    
    <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>5.10.3</version>
      <scope>test</scope>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.junit.platform/junit-platform-suite-api -->
    <dependency>
      <groupId>org.junit.platform</groupId>
      <artifactId>junit-platform-suite-api</artifactId>
      <version>1.10.3</version>
      <scope>test</scope>
    </dependency>

Web elements under test

The web elements tested with Selenium are the following:

Element 1: intrasoft-elem1

Element 2: intrasoft-elem2

Element 3: intrasoft-elem3

Element 4: intrasoft-elem4

Elements 5 and 6: intrasoft-elem5

Actions used

  • Opening a web page,
  • Maximizing the browser window,
  • Finding a web element,
  • Clicking on a web element,
  • Hovering on a web element,
  • Typing in a web element,
  • Returning to previous web page,
  • Quitting the browser.

Further documentation

For more information, please check the provided javadoc.

About

Showcases the combination of Selenium with JUnit and Surefire reporting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published