microsoft/playwright-java

[Feature] : Request to also provide a TestRunner option for Java (only missing test runner in PlayWright) - preferably build on top of powerful Junit5 library.

Closed this issue · 1 comments

Let us know what functionality you'd like to see in Playwright and what your use case is.
Do you think others might benefit from this as well?

### Current state:
PlayWright CodeGen currently provides test runners for all programming options (i.e. TS, Python and Dotnet), except Java.
Screenshot 2024-01-24 at 00 41 15

Request:

Being a Selenium with Java user from years and only now finding all the awesome features that PlayWright brings in, I am already a PlayWright believer and going to use it in my future projects - (with or without Java).

But I believe there are many Java users, who may not switch to PlayWright only for the reason that there is no in built TestRunner option from PlayWright for Java. Yes they can use the library with Java and Junit5 but the final code is not as clean and concise as it with the Test Runner option.

I believe a missing TestRunner for Java, based on Junit5, is the only thing standing between huge migration from selenium to playwright and providing one would make the choice easy for existing users.

Hence the request.

P.S [Compliments]:

My kudos to PlayWright team for creating such an awesome Web and API automation tool. I can not thank you enough for this awesome product :).

We are not planning to port playwright test runner into other languages from node.js, but there is ongoing work of providing better integration with JUnit including fixtures similar to playwright node.js. It is tracked in #1369, folding this request into it.