RFR: 8319555: [TestBug] Utility for creating instruction window for manual tests
Andy Goryachev
angorya at openjdk.org
Fri Mar 28 23:19:34 UTC 2025
On Fri, 28 Mar 2025 18:43:34 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Provides the base class for manual tests which displays the test instructions, the UI under test, and the Pass/Fail buttons.
>
> Uses `EmojiTest` to illustrate the use of the new class.
>
> Example:
>
>
> public class ManualTestExample extends ManualTestWindow {
> public ManualTestExample() {
> super(
> "Manual Test Example",
> """
> Instructions:
> 1. you will see a button named "Test"
> 2. press the button
> 3. verify that the button can be pressed""",
> 400, 250
> );
> }
>
> public static void main(String[] args) throws Exception {
> launch(args);
> }
>
> @Override
> protected Node createContent() {
> return new Button("Test");
> }
> }
>
>
> 
On a related note, where is it documented how to run manual tests?
https://wiki.openjdk.org/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Testing
says nothing, still references JDK9 and JDK10 (though the content might still be true), and a link called "several items to work around module export during build and testing" under "Adding new packages in a modular world" section leads to the beginning of the document:
https://wiki.openjdk.org/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-UnderstandingaJDK9Modularworldmixedinourdeveloperbuild
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1747#issuecomment-2762815048
More information about the openjfx-dev
mailing list