Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xray-app/tutorial-js-playwright
Tutorial with Playwright tests, in JavaScript
https://github.com/xray-app/tutorial-js-playwright
javascript jira playwright test-automation testing xray
Last synced: 3 months ago
JSON representation
Tutorial with Playwright tests, in JavaScript
- Host: GitHub
- URL: https://github.com/xray-app/tutorial-js-playwright
- Owner: Xray-App
- License: bsd-3-clause
- Created: 2021-04-01T14:47:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T10:24:18.000Z (6 months ago)
- Last Synced: 2024-08-14T12:02:01.927Z (6 months ago)
- Topics: javascript, jira, playwright, test-automation, testing, xray
- Language: JavaScript
- Homepage:
- Size: 143 KB
- Stars: 5
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tutorial-js-playwright
[![build workflow](https://github.com/Xray-App/tutorial-js-playwright/actions/workflows/main-cloud.yml/badge.svg)](https://github.com/Xray-App/tutorial-js-playwright/actions/workflows/main-cloud.yml)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FXray-App%2Ftutorial-js-playwright-selenium.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FXray-App%2Ftutorial-js-playwright-selenium?ref=badge_shield)
[![license](https://img.shields.io/badge/License-BSD%203--Clause-green.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/Xray-App/community)## Overview
Code that supports the tutorial [Testing web applications using Playwright](https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Playwright) showcasing the integration between [Xray Test Management](https://www.getxray.app/) on Jira and Playwright, using JUnit XML reports.The test automation code implements a basic [Playwright test](https://playwright.dev/docs/test-intro/).
## Prerequisites
In order to run this tutorial you need to have Nodejs and install the playwright-test runner.
```
npx playwright install
npm i -D @playwright/test
```## Running
Tests can be executed locally with the following command
```
PLAYWRIGHT_JUNIT_OUTPUT_NAME=junit.xml npx playwright test --reporter=junit,line
```## 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+Playwright).## 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
- [Playwright test](https://playwright.dev/docs/test-intro/)
- [Playwright](https://playwright.dev/)
- [How Xray processes JUnit XML reports](https://docs.getxray.app/display/XRAYCLOUD/Taking+advantage+of+JUnit+XML+reports)
- [Using playwright-test junit reporter](https://playwright.dev/docs/test-reporters#junit-reporter)## LICENSE
[BSD 3-Clause](LICENSE)