Skip to content

CMCunha/tutorial-java-junit5-selenium

 
 

Repository files navigation

Tutorial with JUnit5 tests using Selenium Webdriver

build workflow license Gitter chat

Overview

Code that supports the tutorial Testing web applications using Selenium and JUnit5 in Java showcasing the integration between Xray Test Management on Jira and JUnit 5, using a custom report.

Prerequisites

In order to run this tutorial, you need to have JDK 8 and Maven. You also need to configure the GitHub packages maven repo, which requires authentication using GH username+token. There's a settings.yml.sample where you need to set those credentials. Rename it to settings.xml and copy it to the ~/.m2 folder.

Running

Tests can be run using the maven command mvn.

mvn test

Tests can also run inside a Docker container; local directory should be mounted so that HUnit XML results are stored locally.

docker build . -t tutorial_java_junit5_selenium
docker run --rm -v $(pwd)/reports:/source/reports -t tutorial_java_junit5_selenium

Submitting results to Jira

Results can be submitted to Jira so that they can be shared with the team and their impacts be easily analysed. This can be achieved using Xray Test Management as shown in further detail in this tutorial.

Contact

Any questions related with this code, please raise issues in this GitHub project. Feel free to contribute and submit PR's. For Xray specific questions, please contact Xray's support team.

LICENSE

BSD 3-Clause

About

Tutorial for JUnit5 using Java integrated with Xray and Jira

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 77.1%
  • Dockerfile 18.2%
  • Shell 4.7%