Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donatas-b/j-playwright
An example of Playwright with Java and Cucumber for web UI automated tests
https://github.com/donatas-b/j-playwright
cucumber java playwright playwright-java test-automation testing
Last synced: about 2 months ago
JSON representation
An example of Playwright with Java and Cucumber for web UI automated tests
- Host: GitHub
- URL: https://github.com/donatas-b/j-playwright
- Owner: donatas-b
- License: unlicense
- Created: 2023-03-08T08:11:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T10:07:32.000Z (over 1 year ago)
- Last Synced: 2023-08-04T19:22:09.595Z (over 1 year ago)
- Topics: cucumber, java, playwright, playwright-java, test-automation, testing
- Language: Java
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# j-playwright
This is an example of using Playwright for web UI test automation. The tests are utilizing [XYZ Bank](https://www.globalsqa.com/angularJs-protractor/BankingProject/#/login) application.
Project is using Java with Playwright, Cucumber, JUnit and Allure reports.
Project architecture was somewhat influenced by Screenplay pattern (page objects provide only UI elements, Tasks are used to perform actions and get resuts from UI).
## Executing the tests
To run the sample project, you can either just run the `Tests` test runner class, use maven from the command line or run feature/ scenario individually from e.g. IntelliJ.By default, the tests will run using Chrome.
```
$ mvn clean verify
```
Test report will be generated under `allure-results`, it can be viewed by running `allure serve` from project root folder.## Useful links
### Web pages
https://playwright.dev/java/docs/introhttps://thats-it-code.com/categories/playwright/
https://qaautomationlabs.com/page-object-model-with-playwright-with-java/
https://medium.com/@sonaldwivedi/page-object-model-with-playwright-java-c05c67cc3081
### GitHub repositories
https://github.com/sonaldwivedi/Playwright