Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless glass platform #803

Open
jperedadnr opened this issue Feb 8, 2024 · 2 comments
Open

Headless glass platform #803

jperedadnr opened this issue Feb 8, 2024 · 2 comments

Comments

@jperedadnr
Copy link

Hi there, TestFX developers and users!

You might be aware of this open PR in the OpenJFX sandbox: openjdk/jfx-sandbox#2, a (WIP) PR to add a first class headless glass platform to OpenJFX.

See https://bugs.openjdk.org/browse/JDK-8324941 for a more detailed description, and see the mailing list thread: https://mail.openjdk.org/pipermail/openjfx-dev/2024-January/045030.html

We have some ongoing development, not yet upstreamed to the sandbox, under: https://github.com/jperedadnr/jfx-sandbox/tree/1-headless and we have some builds ready for those eager to test it:

Those links just have the latest JavaFX SDK 23-ea with the headless platform included.

In order to test this SDK with TestFX, we have forked it, and modified the build files to allow running with JDK 17+/JavaFX 17+, and then replaced the Monocle plaform with the new Headless platform. The changes are here: https://github.com/jperedadnr/TestFX/tree/headless

You can see that we have barely modified the code, and all the tests (500+) run just fine (except for capturing pixels/screen, not supported yet, and for awt tests).

Also as a quick test for others, we have this sample: https://github.com/jperedadnr/Example-TestFX/tree/headless that uses the SDK and a snapshot of TestFX that we have built and deployed to our Nexus for convenience.

It would be great if you could give it a try, and provide some feedback, either here, or to the open PR.

Thank you!

@mvsoder
Copy link
Collaborator

mvsoder commented Feb 8, 2024

Oh wow! This is fantastic! I'll review things as I get a chance. I'm looking forward to Java 17+ support as well.

@credmond
Copy link

Thanks @jperedadnr! Will check this out and revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants