https://github.com/xray-app/tutorial-csharp-nunit-selenium
Tutorial with NUnit tests using Selenium
https://github.com/xray-app/tutorial-csharp-nunit-selenium
Last synced: about 2 months ago
JSON representation
Tutorial with NUnit tests using Selenium
- Host: GitHub
- URL: https://github.com/xray-app/tutorial-csharp-nunit-selenium
- Owner: Xray-App
- License: bsd-3-clause
- Created: 2021-04-01T09:53:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T09:32:21.000Z (over 3 years ago)
- Last Synced: 2025-02-28T15:17:08.158Z (over 1 year ago)
- Language: C#
- Size: 60.5 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tutorial with NUnit tests using Selenium Webdriver
[](https://github.com/Xray-App/tutorial-csharp-nunit-selenium/actions/workflows/main.yml)
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXray-App%2Ftutorial-csharp-nunit-selenium?ref=badge_shield)
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://gitter.im/Xray-App/community)
## Overview
Code that supports the tutorial [Testing web applications using Nunit](https://docs.getxray.app/pages/viewpage.action?pageId=32806649) showcasing the integration between [Xray Test Management](https://www.getxray.app/) on Jira and NUnit.
The test automation code implements some basic [Selenium Webdriver tests](./WebdemoTests.cs).
There are also some other unrelated tests using Google as the target SUT, in case you want to explore further.
## Prerequisites
In order to run this tutorial, you need to have .NET 5.
Dependencies can be installed using:
```bash
dotnet restore
```
## Running
Tests can be run using locally `dotnet` tool.
```bash
dotnet test -s nunit.runsettings --filter WebdemoTests
```
Tests can also run inside a Docker container; local directory should be mounted so that NUnit XML results are stored locally.
```bash
docker build . -t nunit_webdriver_tests
docker run --rm -v $(pwd)/TestResults:/source/bin/Debug/net5.0/TestResults -t nunit_webdriver_tests
```
## 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/pages/viewpage.action?pageId=32806649).
## 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).
## References
- [NUnit](https://nunit.org)
- [How Xray processes NUnit XML reports (from Xray Cloud documentation)](https://docs.getxray.app/display/XRAYCLOUD/Taking+advantage+of+NUnit+XML+reports)
## LICENSE
[BSD 3-Clause](LICENSE)