[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: GUI code testing for JDK 10/11 - Keys, Mouse, TestNG, Maven, etc.
From:       Michael Ennen <mike.ennen () gmail ! com>
Date:       2018-08-29 21:12:27
Message-ID: CAOTPd665xdrwwYB=Griic-CJR=TDRxxRBHvvK3hZjNTym6s7YQ () mail ! gmail ! com
[Download RAW message or body]

We need to release a new version of TestFX that should fix the cursor
positioning issues. It may be more appropriate to continue this discussion
on the TestFX issue tracker. Feel free to open an issue for TestNG support.

Thanks,
Michael Ennen

On Wed, Aug 29, 2018 at 8:56 AM Miroslav Nachev <
mnachev.nscenter.eu@gmail.com> wrote:

> Hi Mike,
>
> Thank you very much for the reply. It will be my pleasure to develop
> TestFX for TestNG.
>
> Yesterday I noticed, that the Robot in JDK11 is not working properly.
> After first use, it throws an exception.
>
> Also for JDK 8 and 10, TestFX does not work correctly or I do not know how
> to use it. The cursor is positioned in the wrong place, and so on. The
> examples that are given do not work. Can the problem be that I run the
> examples from NetBeans 9?
>
>
> Regards,
> Miro.
>
> On Wed, Aug 29, 2018 at 1:49 AM Michael Ennen <mike.ennen@gmail.com>
> wrote:
>
>> Hello,
>>
>> *I am the current maintainer of TestFX and a (new) contributor to OpenJFX
>> working*
>> *on this exact area. TestFX does support Java 10. We are currently
>> working on*
>> *supporting Java 11, as can be seen here:
>> https://github.com/TestFX/TestFX/pull/606
>> <https://github.com/TestFX/TestFX/pull/606>.*
>> *In JavaFX 11com.sun.glass.ui.Robot was moved to the public API as*
>> *javafx.scene.robot.Robot so it is now easier to use the built-in Robot
>> to test a*
>> *JavaFX GUI application.*
>>
>> *TestFX offers some nice conveniences on top of the base Robot (namely,*
>> *a nice way to target specific nodes in the scene graph and assert on
>> their*
>> *expected states).*
>>
>> *In summary, TestFX will soon support JavaFX 11. You can use the public
>> API*
>> *Robot if you do not wish to use TestFX. TestFX does not currently
>> support*
>> *TestNG - a contribution in that regard to TestFX would be great. You can
>> see*
>>
>>
>> *the sub-projects for Junit 4/5 are quite small:*
>> *Although things are in a state of flux with regards to how the JUnit
>> sub-projects*
>> *work with respect to Jan Ortner's work in
>> https://github.com/TestFX/TestFX/pull/615
>> <https://github.com/TestFX/TestFX/pull/615>.*
>> *Therefore if you were interested in contributing TestNG support to
>> TestFX it would*
>> *be advisable to base the work off of Jan Ortner's work in 615.*
>>
>> *Also, I should mention, that the basic robot functionality for Glass has
>> been*
>> *around since before Java 8 and could always be used, although it was a
>> private*
>> *API so any code written for it could break at any time. Now that it is
>> part of the*
>> *public API that is no longer a concern.*
>>
>> *I should also mention that it is possible to use the AWT Robot with
>> JavaFX and*
>> *bypass the JavaFX Robot entirely.*
>>
>> Thanks,
>> Michael Ennen
>>
>> On Tue, Aug 28, 2018 at 2:42 PM Miroslav Nachev <
>> mnachev.nscenter.eu@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> What are the possible options for GUI code testing for JDK 10/11?
>>>
>>> I tried TestFX <https://github.com/TestFX/TestFX>, but this project does
>>> not support JDK 10/11. Additionally, it does not support TestNG. I do not
>>> want to use JUnit, because it does not have the necessary functionality,
>>> such as ordered/sorted execution of the methods in each class.
>>>
>>>
>>> Regards,
>>> Miro.
>>
>>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic