https://github.com/xray-app/tutorial-java-testng-selenium
Tutorial for TestNG using Java integrated with Xray and Jira
https://github.com/xray-app/tutorial-java-testng-selenium
java jira selenium testing testng xray
Last synced: about 1 month ago
JSON representation
Tutorial for TestNG using Java integrated with Xray and Jira
- Host: GitHub
- URL: https://github.com/xray-app/tutorial-java-testng-selenium
- Owner: Xray-App
- License: bsd-3-clause
- Created: 2022-07-28T11:12:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T14:42:38.000Z (over 3 years ago)
- Last Synced: 2025-01-11T04:25:54.048Z (over 1 year ago)
- Topics: java, jira, selenium, testing, testng, xray
- Language: Java
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tutorial with TestNG tests using Selenium Webdriver
[](https://github.com/Xray-App/tutorial-java-testng-selenium/actions/workflows/main.yml)
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://gitter.im/Xray-App/community)
## Overview
Code that supports the tutorial [Testing web applications using Selenium and TestNG in Java](https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Selenium+and+TestNG+in+Java) showcasing the integration between [Xray Test Management](https://www.getxray.app/) 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`.
```bash
mvn test
```
If you prefer Gradle, it's also possible to run the tests using the command `gradle`.
```bash
gradle clean testngTest
```
Tests can also run inside a Docker container; local directory should be mounted so that TestNG XML results are stored locally.
```bash
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](https://www.getxray.app/) as shown in further detail in this [tutorial](https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Selenium+and+TestNG+in+Java).
## 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](https://jira.getxray.app/servicedesk/customer/portal/2).
## LICENSE
[BSD 3-Clause](LICENSE)