JavaFX 2的GUI测试框架 [英] GUI testing framework for JavaFX 2

查看:155
本文介绍了JavaFX 2的GUI测试框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在阅读以测试为导向的面向对象软件的增长这本书,它给出了一个体面的测试介绍驱动开发。

I'm currently reading the book Growing Object-Oriented Software Guided by Tests which gives a decent introduction into test driven development.

一个缺点是本书开发的代码基于Swing。对于我的下一个项目,我想使用Java FX 2,我想知道是否有任何GUI测试框架呢?本书介绍了 windowlicker ,它允许仅测试Swing应用程序。

One drawback is that the code developed through the book is based on Swing. For my next project I'd like to use Java FX 2 and I'm wondering if there are any GUI testing frameworks out there for it? The book introduces windowlicker, which allows testing Swing applications only.

推荐答案

有一个名为JemmyFX的库。 Jemmy 本身就是一套用于测试UI应用程序的库和工具(主要是Java-基于:Swing,AWT,SWT;但它现在正在扩展到原生)。 JemmyFX涵盖了JavaFX。

There is a library named JemmyFX. Jemmy itself is a set of libraries and tools to test UI applications (mostly Java-based: Swing, AWT, SWT; but it's being extended to native right now). JemmyFX covers JavaFX for that matter.

JemmyFX可以作为 OpenJFX 2的测试分支(JavaFX的开源部分)。

JemmyFX can be downloaded as a part of the test branch of OpenJFX 2 (open-sourced part of JavaFX).

对于 JavaFX 8 测试分支包括对新的支持控制和其他修正。

For JavaFX 8, the test branch includes support for new controls and other fixes.

这篇关于JavaFX 2的GUI测试框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆