https://github.com/xray-app/tutorial-js-mocha-webdriverio
Tutorial with Mocha tests, in NodeJS, using WebDriverIO
https://github.com/xray-app/tutorial-js-mocha-webdriverio
Last synced: about 1 year ago
JSON representation
Tutorial with Mocha tests, in NodeJS, using WebDriverIO
- Host: GitHub
- URL: https://github.com/xray-app/tutorial-js-mocha-webdriverio
- Owner: Xray-App
- Created: 2021-06-16T17:53:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T08:56:31.000Z (over 3 years ago)
- Last Synced: 2025-02-28T15:16:57.644Z (over 1 year ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tutorial-js-mocha-webdriverio
[](https://github.com/Xray-App/tutorial-js-mocha-webdriverio/actions/workflows/main-cloud.yml)
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://gitter.im/Xray-App/community)
## Overview
Code that support the tutorial [Testing web applications using Mocha and WebdriverIO](https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Mocha+and+WebdriverIO#) showcasing the integratoin between [Xray Test Management](https://www.getxray.app/) on Jira and JUnit.
The test automation code implements a basic [Mocha test using WebDriverIO](https://webdriver.io/docs/gettingstarted/)
## Prerequisites
In order to run this tutorial you need to have Nodejs and install WebDriverIO test runner.
```
npm install @wdio/cli
```
Install the Junit Framework.
```
npm install @wdio/junit-reporter --save-dev
```
## Running
Tests can be executed locally with the following command
```
npx wdio run ./wdio.conf.js
```
## 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+Mocha+and+WebdriverIO#).
## 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
- [WebDriverIO](https://webdriver.io/docs/gettingstarted/)
- [How Xray processes NUnit XML reports](https://docs.getxray.app/display/XRAYCLOUD/Taking+advantage+of+NUnit+XML+reports)
## LICENSE
[BSD 3-Clause](LICENSE)