Skip to content

Xray-App/tutorial-java-testng-selenium

Repository files navigation

Tutorial with TestNG tests using Selenium Webdriver

build workflow license Gitter chat

Overview

Code that supports the tutorial Testing web applications using Selenium and TestNG in Java showcasing the integration between Xray Test Management on Jira and TestNG, using Xray related annotations.

Prerequisites

In order to run this tutorial, you need to have JDK 11 and Maven; Gradle should also be supported. This tutorial uses the maven package xray-testng-extensions which is available on Maven Central repository; previously this package was on GitHub packages but meanwhile it was moved to Maven Central.

Running

Tests can be run using the maven command mvn.

mvn test

If you prefer Gradle, it's also possible to run the tests using the command gradle.

gradle clean testngTest

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

docker build . -t tutorial_java_testng_selenium
docker run --rm -v $(pwd)/reports:/source/target -t tutorial_java_testng_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