[JVM] Testing JavaFX or desktop java applications

438 views
Skip to first unread message

Javix

unread,
May 1, 2013, 3:46:18 PM5/1/13
to cu...@googlegroups.com
I wonder if it is possible to test JavaFX or other Java desktop applications with cucumber-jvm ?

Thank you for your ideas and tips if there are any.

Pankaj Nakhat

unread,
May 1, 2013, 5:39:58 PM5/1/13
to cu...@googlegroups.com
You will need a test driver to test the application underneath Cucumber scenario. Cucumber just provides the framework not underneath driver. 

You can look at Franekestiein http://frankenstein.openqa.org/

Regards,
Pankaj Nakhat
www.pankajnakhat.com
t : @pnakhat


On Wed, May 1, 2013 at 8:46 PM, Javix <s.ca...@gmail.com> wrote:
I wonder if it is possible to test JavaFX or other Java desktop applications with cucumber-jvm ?

Thank you for your ideas and tips if there are any.

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Thomas Sundberg

unread,
May 2, 2013, 2:31:50 AM5/2/13
to cu...@googlegroups.com
On 1 May 2013 21:46, Javix <s.ca...@gmail.com> wrote:
> I wonder if it is possible to test JavaFX or other Java desktop applications
> with cucumber-jvm ?
>

I wrote a blog a while ago where I use Cucumber-JVM to verify the same
application implemented using six different interfaces. One of them is
a Swing application.
It is available here:
https://thomassundberg.wordpress.com/2012/11/01/cucumber-jvm-not-just-for-testing-guis/

The short answer is however that it is possible to test anything with
Cucumber-JVM as long as you are able to interface against the program
you want to verify. If you need to verify a web application, a tool
like Selenium might help you. If you need to validate a rich Java
client, a tool like FEST may be your friend. If you need to verify a
Web Service, tools like RESTAssured or just implementing a SOAP client
may be your friends.

Cucumber-JVM doesn't care what tools you use to verify something.
Cucumber-JVM is the driver of the requirements that must be fulfilled.

HTH
Thomas


> Thank you for your ideas and tips if there are any.
>
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a new
> topic instead.
>
> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to cu...@googlegroups.com. To
> unsubscribe from this group, send email to
> cukes+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/cukes?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cukes+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

Serguei Cambour

unread,
May 2, 2013, 3:30:40 AM5/2/13
to cu...@googlegroups.com

On 02 May 2013, at 08:31, Thomas Sundberg <t...@kth.se> wrote:

> On 1 May 2013 21:46, Javix <s.ca...@gmail.com> wrote:
>> I wonder if it is possible to test JavaFX or other Java desktop applications
>> with cucumber-jvm ?
>>
>
> I wrote a blog a while ago where I use Cucumber-JVM to verify the same
> application implemented using six different interfaces. One of them is
> a Swing application.
> It is available here:
> https://thomassundberg.wordpress.com/2012/11/01/cucumber-jvm-not-just-for-testing-guis/
>
> The short answer is however that it is possible to test anything with
> Cucumber-JVM as long as you are able to interface against the program
> you want to verify. If you need to verify a web application, a tool
> like Selenium might help you. If you need to validate a rich Java
> client, a tool like FEST may be your friend. If you need to verify a
> Web Service, tools like RESTAssured or just implementing a SOAP client
> may be your friends.
>
> Cucumber-JVM doesn't care what tools you use to verify something.
> Cucumber-JVM is the driver of the requirements that must be fulfilled.
>
> HTH
> Thomas

Thank you all for your answers, very helpful.

Cheers
> You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/ocUbqljxAlI/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.

Javix

unread,
May 26, 2013, 11:40:32 AM5/26/13
to cu...@googlegroups.com


On Wednesday, 1 May 2013 21:46:18 UTC+2, Javix wrote:
I wonder if it is possible to test JavaFX or other Java desktop applications with cucumber-jvm ?

Thank you for your ideas and tips if there are any.

I've just created a simple JavaFX project with some tests with cucumber-jvm and jemmyFX at https://github.com/Javix/hello-javafx-maven. May be one day some will be interested to use that. By the way, on OS X, the first run always fails, because the RobotExecutor is started and it takes some time for launching. As a result, when I simulate typing 'toto' in a textfield, it 'looses' the first letter and types in 'oto'. The RobotExecutor stays running and the second test run is OK. Another 'strange' behaviour is that it (jemmyFX) does not recognise AZERTY keyboard and sees typed in lettres as if I used the QWERTY one. I've never seen that before, nowhere...
Reply all
Reply to author
Forward
0 new messages