RFR: 8319555: [TestBug] Utility for creating instruction window for manual tests [v4]
Andy Goryachev
angorya at openjdk.org
Wed Apr 10 23:04:56 UTC 2024
On Mon, 8 Apr 2024 15:04:24 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> ## ManualTestWindow
>>
>> This facility provides the base class for manual tests which displays the test instructions,
>> the UI under test, and the Pass/Fail buttons.
>>
>> 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");
>> }
>> }
>>
>>
>> Resulting application window:
>>
>> 
>>
>> Readme:
>>
>> https://github.com/andy-goryachev-oracle/jfx/blob/8319555.manual/tests/manual/util/README.md
>>
>> @prrace 's test EmojiTest has been converted to use the new test window as a demonstration (also fixed the Eclipse project so it works now).
>>
>> Q: What other features can be added to the test window?
>>
>> Edit: the sources are left in their original place at the root of the project.
>
> Andy Goryachev has updated the pull request incrementally with two additional commits since the last revision:
>
> - works
> - .
Thank you all for comments and suggestions!
Changed to extend Application. See if you like this better.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1413#issuecomment-2048571900
More information about the openjfx-dev
mailing list