如何在没有在FEST-SWING中显示的情况下进行gui测试 [英] how to make gui test without displaying in FEST-SWING

查看:131
本文介绍了如何在没有在FEST-SWING中显示的情况下进行gui测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我们使用 FEST 进行GUI测试。我们已经说服FEST是强大的,但每次显示帧都是浪费时间。我们也使用连续体,而FEST不能用连续体,因为连续体的maven无法打开GUI(我们也使用maven,我们的测试在本地机器上传递maven)。

In my project, we are using FEST for GUI testing. We have been persuaded that FEST is powerful, however displaying frames every time is a waste of time. Also we are using continuum and FEST doesn't work with continuum because continuum's maven can't open the GUI (by the way we use maven too and our tests pass in maven on our local machine).

如何解决这个问题?

如果无法解决,请通知我。

If it is not possible, please inform me.

推荐答案

FEST by design显示UI。如果您不希望测试阻止您的桌面,唯一的方法是使用某种虚拟桌面:
- Xvfb(Linux)
- VMWare(Linux,Windows)
- 自动登录(Windows - 未经测试,在文档中找到)

FEST by design displays the UI. If you don't want the tests to block your desktop, the only way is to use some kind of virtual desktop: - Xvfb (Linux) - VMWare (Linux, Windows) - Auto-logon (Windows - not tested, found somewhere in docs)

您可以在此处阅读更多相关信息: http://docs.codehaus.org/display/FEST/Continuous+Integration

You can read more about it here: http://docs.codehaus.org/display/FEST/Continuous+Integration

可能或可能不相关,但是为了加快你的测试,请看看:

May or may not be related, but in order to speed up your tests have a look at:

Robot.settings().delayBetweenEvents()

这可以控制鼠标和键盘事件的速度。

This controls how fast mouse and keyboard events are.

这篇关于如何在没有在FEST-SWING中显示的情况下进行gui测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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