RFR: 8319555: [TestBug] Utility for creating instruction window for manual tests

Kevin Rushforth kcr at openjdk.org
Wed Apr 2 23:22:52 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");
>      }
> }
> 
> 
> ![Screenshot 2025-03-28 at 11 50 16](https://github.com/user-attachments/assets/b44a7eb1-d98f-44a5-b13e-612b31c94c60)

I like the idea of a standard test utility, as long as there is some sort of build script or easy way to get at it. Probably not `build/testrun.args`, though, since is meant for unit tests and includes the shims classes, so isn't suitable for most manual tests where we typically want to stick to the public API.

We might want to wait until we implement at least part of [JDK-8296441](https://bugs.openjdk.org/browse/JDK-8296441) is implemented.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1747#issuecomment-2773940206


More information about the openjfx-dev mailing list